home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / riscbsd / datafile / usd / 01_begin / u1_txt < prev    next >
Encoding:
Text File  |  1996-10-12  |  13.3 KB  |  397 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. INTRODUCTION
  8.  
  9.   From  the  user's  point  of view, the operating system is
  10. easy to learn and use, and presents few of the usual impedi-
  11. ments to getting the job done.  It is hard, however, for the
  12. beginner to know where to start, and how to  make  the  best
  13. use of the facilities available.  The purpose of this intro-
  14. duction is to help new users get used to the main  ideas  of
  15. the system and start making effective use of it quickly.
  16.  
  17.   You  should  have a couple of other documents with you for
  18. easy reference as you read this one.  The most important  is
  19. The it's often easier to tell you to read about something in
  20. the manual than to repeat its contents here.  The other use-
  21. ful  document is A Tutorial Introduction to the Text Editor,
  22. which will tell you how to use the editor  to  get  text  --
  23. programs, data, documents -- into the computer.
  24.  
  25.   A  word  of  warning: the system has become quite popular,
  26. and there are several major variants in widespread use.   Of
  27. course details also change with time.  So although the basic
  28. structure of and how to use it is common  to  all  versions,
  29. there  will certainly be a few things which are different on
  30. your system from what is described here.  We have  tried  to
  31. minimize  the  problem,  but  be  aware  of it.  In cases of
  32. doubt, this paper describes Version 7
  33.  
  34.   This paper has five sections:
  35.  
  36.   1.
  37.   Getting Started: How to log in, how to type,  what  to  do
  38.   about mistakes in typing, how to log out.  Some of this is
  39.   dependent on which system you log into (phone numbers, for
  40.   example)  and  what terminal you use, so this section must
  41.   necessarily be supplemented by local information.
  42.  
  43.   2.
  44.   Day-to-day Use: Things you need every day to use the  sys-
  45.   tem  effectively: generally useful commands; the file sys-
  46.   tem.
  47.  
  48.   3.
  49.   Document Preparation: Preparing manuscripts is one of  the
  50.   most  common  uses  for  systems.   This  section contains
  51.   advice, but not extensive instructions on any of the  for-
  52.   matting tools.
  53.  
  54.   4.
  55.   Writing  Programs:  is  an excellent system for developing
  56.   programs.  This section talks about some of the tools, but
  57.   again  is  not  a  tutorial in any of the programming lan-
  58.   guages provided by the system.
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                              -2-
  71.  
  72.  
  73.   5.
  74.   A Reading List.  An annotated  bibliography  of  documents
  75.   that new users should be aware of.
  76.  
  77. I.  GETTING STARTED
  78.  
  79. Logging In
  80.  
  81.   You must have a login name, which you can get from whoever
  82. administers your system.  You also need to  know  the  phone
  83. number, unless your system uses permanently connected termi-
  84. nals.  The system is capable of dealing with a wide  variety
  85. of  terminals:  Terminet  300's;  Execuport,  TI and similar
  86. portables; video (CRT)  terminals  like  the  HP2640,  etc.;
  87. high-priced  graphics  terminals  like  the  Tektronix 4014;
  88. plotting terminals like those from GSI and  DASI;  and  even
  89. the  venerable  Teletype in its various forms.  But note: is
  90. strongly oriented towards devices with lower case.  If  your
  91. terminal  produces only upper case (e.g., model 33 Teletype,
  92. some video and portable terminals), life will be  so  diffi-
  93. cult that you should look for another terminal.
  94.  
  95.   Be  sure to set the switches appropriately on your device.
  96. Switches that might need to be adjusted include  the  speed,
  97. upper/lower  case  mode,  full  duplex, even parity, and any
  98. others that local wisdom advises.   Establish  a  connection
  99. using  whatever  magic is needed for your terminal; this may
  100. involve dialing  a  telephone  call  or  merely  flipping  a
  101. switch.  In either case, should type login:'' at you.  If it
  102. types garbage, you may be at  the  wrong  speed;  check  the
  103. switches.   If  that  fails,  push the ``break'' or ``inter-
  104. rupt'' key a few times, slowly.  If that fails to produce  a
  105. login message, consult a guru.
  106.  
  107.   When  you  get  a  login:-message, type your login name in
  108. lower case.  Follow it by a the system will not do  anything
  109. until  you  type  a  If  a password is required, you will be
  110. asked for it, and (if possible) printing will be turned  off
  111. while you type it.  Don't forget
  112.  
  113.   The  culmination of your login efforts is a ``prompt char-
  114. acter,'' a single character that indicates that  the  system
  115. is  ready to accept commands from you.  The prompt character
  116. is usually a dollar sign $-or a percent sign  %.   (You  may
  117. also get a message of the day just before the prompt charac-
  118. ter, or a notification that you have mail.)
  119.  
  120. Typing Commands
  121.  
  122.   Once you've seen the prompt character, you can  type  com-
  123. mands, which are requests that the system do something.  Try
  124. typing date followed by You should get back  something  like
  125. Mon Jan 16 14:17:10 EST 1978 Don't forget the after the com-
  126. mand, or nothing will happen.  If  you  think  you're  being
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                              -3-
  137.  
  138.  
  139. ignored, type a something should happen.  won't be mentioned
  140. again, but don't forget it -- it has to be there at the  end
  141. of each line.
  142.  
  143.   Another  command  you  might  try  is who, which tells you
  144. everyone who is currently logged  in:  who  gives  something
  145. like  mb   tty01Jan  16     09:11  ski  tty05Jan 16    09:33
  146. gam  tty11Jan 16    13:07 The time is when the  user  logged
  147. in; ``ttyxx'' is the system's idea of what terminal the user
  148. is on.
  149.  
  150.   If you make a mistake typing the command name,  and  refer
  151. to  a  non-existent command, you will be told.  For example,
  152. if you type whom you will be told whom: not found Of course,
  153. if you inadvertently type the name of some other command, it
  154. will run, with more or less mysterious results.
  155.  
  156. Strange Terminal Behavior
  157.  
  158.   Sometimes you can get into a  state  where  your  terminal
  159. acts  strangely.   For  example,  each  letter  may be typed
  160. twice, or the may not cause a line feed or a return  to  the
  161. left margin.  You can often fix this by logging out and log-
  162. ging  back  in.- Or you can read the description of the com-
  163. mand stty-in section 1 of the manual.   To  get  intelligent
  164. treatment  of tab characters (which are much used in if your
  165. terminal doesn't have tabs, type the command stty -tabs  and
  166. the  system  will  convert each tab into the right number of
  167. blanks for  you.   If  your  terminal  does  have  computer-
  168. settable tabs, the command tabs-will set the stops correctly
  169. for you.
  170.  
  171. Mistakes in Typing
  172.  
  173.   If you make a typing mistake, and see it before  has  been
  174. typed, there are two ways to recover.  The sharp-character #-
  175. erases the last character typed; in fact successive uses  of
  176. #- erase  characters  back to the beginning of the line (but
  177. not beyond).  So if you type badly, you can correct  as  you
  178. go: dd#atte##e is the same as date.=
  179.  
  180.   The at-sign @-erases all of the characters typed so far on
  181. the current input line, so  if  the  line  is  irretrievably
  182. fouled up, type an @-and start the line over.
  183.  
  184.   What  if  you must enter a sharp or at-sign as part of the
  185. text?  If you precede either #-or @-by  a  backslash  \,  it
  186. -----------
  187. - In Berkeley Unix, the command "reset<control-j>"
  188. will  often  reset  a  terminal  apparently  in  a
  189. strange state because a fullscreen editor crashed.
  190. =  Many  installations set the erase character for
  191. display terminals to the delete or backspace  key.
  192. "stty all" tells you what it actually is.
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                              -4-
  203.  
  204.  
  205. loses  its erase meaning.  So to enter a sharp or at-sign in
  206. something, type \#-or \@.  The system  will  always  echo  a
  207. newline  at  you  after  your at-sign, even if preceded by a
  208. backslash.  Don't worry -- the at-sign has been recorded.
  209.  
  210.   To erase a backslash, you have to type two sharps  or  two
  211. at-signs,  as  in \##.  The backslash is used extensively in
  212. to indicate that the following character is in some way spe-
  213. cial.
  214.  
  215. Read-ahead
  216.  
  217.   has full read-ahead, which means that you can type as fast
  218. as you want, whenever you want, even when  some  command  is
  219. typing  at you.  If you type during output, your input char-
  220. acters will appear intermixed with  the  output  characters,
  221. but  they will be stored away and interpreted in the correct
  222. order.  So you can type several commands one  after  another
  223. without waiting for the first to finish or even begin.
  224.  
  225. Stopping a Program
  226.  
  227.   You  can  stop most programs by typing the character (per-
  228. haps called ``delete'' or ``rubout'' on your terminal).  The
  229. ``interrupt''  or  ``break'' key found on most terminals can
  230. also be used.- In a few  programs,  like  the  text  editor,
  231. stops  whatever  the program is doing but leaves you in that
  232. program.  Hanging up the phone will stop most programs.=
  233.  
  234. Logging Out
  235.  
  236.   The  easiest  way to log out is to hang up the phone.  You
  237. can also type login and let someone else  use  the  terminal
  238. you were on.*  It is usually not sufficient just to turn off
  239. the terminal.  Most systems do not use a time-out mechanism,
  240. so you'll be there forever unless you hang up.
  241.  
  242. Mail
  243.  
  244.   When you log in, you may sometimes  get  the  message  You
  245. have  mail.  provides a postal system so you can communicate
  246. with other users of the system.  To read your mail, type the
  247. command  mail  Your  mail  will be printed, one message at a
  248. time, most recent message first.= After each  message,  mail-
  249. -----------
  250. - In Berkeley Unix, "control-c" is the  usual  way
  251. to  stop  programs. "stty all" tells you the value
  252. of your "intr" key.
  253. = If you use the c shell, programs running in  the
  254. background continue running even if you hang up.
  255. * "control-d" and "logout" are other alternatives.
  256. = The Berkeley mail program lists the  headers  of
  257. some  number of unread pieces of mail in the order
  258. of their receipt.
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                              -5-
  269.  
  270.  
  271. waits  for  you  to  say  what to do with it.  The two basic
  272. responses are d, which deletes the message, and  which  does
  273. not  (so  it will still be there the next time you read your
  274. mailbox).  Other responses  are  described  in  the  manual.
  275. (Earlier  versions  of  mail-do not process one message at a
  276. time, but are otherwise similar.)
  277.  
  278.   How do you send mail to someone else?  Suppose it is to go
  279. to  ``joe'' (assuming ``joe'' is someone's login name).  The
  280. easiest way is this: mail joe now type in the  text  of  the
  281. letter on as many lines as you like ...  After the last line
  282. of the letter type the  character  ``control-d'',  that  is,
  283. hold  down  ``control'' and type a letter ``d''.  And that's
  284. it.  The ``control-d'' sequence, often  called  ``EOF''  for
  285. end-of-file,  is  used throughout the system to mark the end
  286. of input from a terminal, so you might as well get  used  to
  287. it.
  288.  
  289.   For  practice,  send  mail  to  yourself.   (This isn't as
  290. strange as it might sound -- mail  to  oneself  is  a  handy
  291. reminder mechanism.)
  292.  
  293.   There are other ways to send mail -- you can send a previ-
  294. ously prepared letter, and you can mail to a number of  peo-
  295. ple  all at once.  For more details see mail(1).  (The nota-
  296. tion mail(1) means the command mail-in section 1 of the
  297.  
  298. Writing to other users-
  299.  
  300.   At some point, out of the blue will come  a  message  like
  301. Message  from joe tty07...  accompanied by a startling beep.
  302. It means that Joe wants to talk to you, but unless you  take
  303. explicit action you won't be able to talk back.  To respond,
  304. type the command write joe This establishes a two-way commu-
  305. nication  path.  Now whatever Joe types on his terminal will
  306. appear on yours and vice versa.  The path  is  slow,  rather
  307. like  talking  to  the  moon.   (If you are in the middle of
  308. something, you have to get to a state where you can  type  a
  309. command.   Normally, whatever program you are running has to
  310. terminate or be terminated.   If  you're  editing,  you  can
  311. escape  temporarily from the editor -- read the editor tuto-
  312. rial.)
  313.  
  314.   A protocol is needed to keep what you  type  from  getting
  315. garbled up with what Joe types.  Typically it's like this:
  316. Joe types write-smith-and waits.
  317. Smith types write-joe-and waits.
  318. Joe now types his message (as many lines as he likes).  When
  319. -----------
  320. - Although "write" works on Berkeley  there  is  a
  321. much  nicer  way  of  communicating using display-
  322. terminals -- "talk" splits  the  screen  into  two
  323. sections,  and both of you can type simultaneously
  324. (see talk(1)).
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                              -6-
  335.  
  336.  
  337. he's ready for a reply, he signals it by typing  (o),  which
  338. stands for ``over''.
  339. Now Smith types a reply, also terminated by (o).
  340. This cycle repeats until someone gets tired; he then signals
  341. his intent to quit with (oo), for ``over and out''.
  342. To terminate the conversation, each side must type a  ``con-
  343. trol-d'' character alone on a line. (``Delete'' also works.)
  344. When the other person types his ``control-d'', you will  get
  345. the message EOF-on your terminal.
  346.  
  347.   If  you  write  to  someone  who  isn't  logged in, or who
  348. doesn't want to be disturbed, you'll be told.  If the target
  349. is  logged  in  but  doesn't answer after a decent interval,
  350. simply type ``control-d''.
  351.  
  352. On-line Manual
  353.  
  354.   The Programmer's Manual is typically kept on-line.  If you
  355. get  stuck  on something, and can't find an expert to assist
  356. you, you can print on your terminal some manual section that
  357. might help.  This is also useful for getting the most up-to-
  358. date information on a command.  To print a  manual  section,
  359. type  ``man command-name''.  Thus to read up on the who-com-
  360. mand, type man who and, of course, man man tells  all  about
  361. the man-command.
  362.  
  363. Computer Aided Instruction
  364.  
  365.   Your  system  may  have  available a program called learn,
  366. which provides computer aided instruction on the file system
  367. and  basic  commands,  the editor, document preparation, and
  368. even C programming.  Try typing the command learn  If  learn-
  369. exists  on  your  system,  it  will tell you what to do from
  370. there.
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.