📄 u1
字号:
.sp.SHI. GETTING STARTED.SHLogging In.PPMost of the details about logging in are in the manualsectioncalled``How to Get Started''(pages.uliv-vin the 5th Edition).Here are a couple of extra warnings..PPYou must have a .UC UNIXlogin name, which you can get fromwhoever administers your system.You also need to know the phone number..UC UNIXis capable of dealing with a variety of terminals:Terminet 300's; Execuport, TI and similarportables;video terminals; GSI's; and even the venerableTeletype in its various forms.But note:.UC UNIXwill not handle IBM 2741 terminalsand their derivatives(e.g., some Anderson-Jacobsons, Novar).Furthermore,.UC UNIXis strongly oriented towards devices with .ullower case.If your terminal produces only upper case (e.g., model 33 Teletype),life will be so difficult that you should look for anotherterminal..PPBe sure to set the switches appropriately on your device:speed (if it's variable) to 30 characters per second,lower case,full duplex, even parity, and any othersthat local wisdom advises.Establish a connection using whatevermagic is needed for your terminal..UC UNIXshould type ``login:'' at you.If it types garbage, you may be at the wrong speed;push the `break' or `interrupt' key once.If that fails to produce a login message, consult a guru..PPWhen you get a ``login:'' message,type yourlogin name.ulin lower case.Follow it by a .UC RETURNif the terminal has one.If a password is required,you will be asked for it,and (if possible)printing will be turned off while you type it,again followed by a.UC RETURN.(On M37 Teletypes always use.UC NEWLINEor.UC LINEFEEDin place of.UC RETURN )..PPThe culmination of your login efforts is a percent sign ``%''.The percent sign means that .UC UNIXis ready to accept commands from the terminal.(You may also get a message of the day just before thepercent sign or a notification that you have mail.).SHTyping Commands.PPOnce you've seen the percent sign, you can type commands,which arerequests that.UC UNIXdo something.Try typing.B1date.B2followed by .UC RETURN.You should get back something like.B1Sun Sep 22 10:52:29 EDT 1974.B2Don't forget the.UC RETURNafter the command,or nothing will happen.If you think you're being ignored,type a.UC RETURN ;something should happen.We won't show the carriage returns,but they have to be there..PPAnother command you might try is.C who ,which tells you everyone who is currently logged in:.B1who.B2gives something like.B1pjp ttyf Sep 22 09:40bwk ttyg Sep 22 09:48mel ttyh Sep 22 09:58.B2The time is when the user logged in..PPIf you make a mistake typing the command name,.UC UNIXwill tell you.For example, if you type.B1whom.B2you will be told .B1whom: not found.B2.SHStrange Terminal Behavior.PPSometimes you can get into a statewhere your terminal acts strangely.For example,each letter may be typed twice,or the.UC RETURNmay not cause a line feed.You can often fix this by logging out and logging back in.Or you can read the description of the command.C sttyin section I of the manual.This will also tell you how to get intelligent treatment oftab characters(which are much used in.UC UNIX )if your terminal doesn't have tabs.If it does have computer-settable tabs,the command.C tabswill set the stops correctly for you..SHMistakes in Typing.PPIf you make a typing mistake, and see it before the carriage returnhas been typed,there are two ways to recover.The sharp-character ``#'' erases the last character typed;in fact successive uses of ``#'' erase characters back tothe beginning of the line (but not beyond).So if you type badly, you can correct as you go:.B1dd#atte##e.B2is the same as ``date''..PPThe at-sign ``@'' erases all of the characterstyped so faron the current input line,so if the line is irretrievably fouled up, type an ``@'' and start over(on the same line!)..PPWhat if you must enter a sharp or at-signas part of the text?If you precede either ``#'' or ``@'' by a backslash ``\\'',it loses its erase meaning.This implies that to erase a backslash,you have to type two sharps or two at-signs.The backslash is used extensively in.UC UNIXto indicate that the following character is in some way special..SHReadahead.PP.UC UNIXhas full readahead,which means that you can type as fast as you want,whenever you want,even when some command is typing at you.If you type during output,your input characters will appear intermixed with the output characters,but they will be stored away by.UC UNIXand interpreted in the correct order.So you can type two commands one after another withoutwaiting for the first to finish or even begin..SHStopping a Program.PPYou can stop most programs bytyping the character ``DEL''(perhaps called ``delete'' or ``rubout'' on your terminal).There are exceptions, like the text editor,where.UC DELstops whatever the program is doing but leaves you in that program.You can also just hang up the phone.The ``interrupt'' or ``break'' key found on most terminalshas no effect..SHLogging Out.PPThe easiest way to log out is to hang up the phone.You can also type.B1login name-of-new-user.B2and let someone else use the terminal you were on.It is not sufficient just to turn off the terminal..UC UNIXhas no time-out mechanism, so you'll bethere forever unless you hang up..SHMail.PPWhen you log in, you may sometimes get the message.B1You have mail..B2.UC UNIXprovides a postal system so you can send and receive lettersfrom other users of the system.To read your mail,issue the command.B1mail.B2Your mail will be printed, and then you will be asked.B1Save?.B2If you do want to save the mail, type.ul y,for ``yes'';any other response means ``no''..PPHow do you send mail to someone else?Suppose it is to go to ``joe'' (assuming ``joe'' is someone's login name).The easiest way is this:.B1.ne 7mail joe.Inow type in the text of the letteron as many lines as you like ...after the last line of the lettertype the character ``control-d'',that is, hold down ``control'' and typea letter ``d''..B2.RAnd that's it.The ``control-d'' sequence, usually called ``EOT'', is used throughout .UC UNIXto mark the end of input from a terminal,so you might as well get used to it..PPThere are other ways to send mail _you can send a previously prepared letter,and you can mail to a number of people all at once.For more details see.SE mail (I)..PPThe notation.SE mail (I)means the command .C mailin section (I)of the.ul.UC UNIX.ulProgrammer's Manual..SHWriting to other users.PPAt some point in your .UC UNIX career, out of the blue will come a messagelike.B1Message from joe....B2accompanied by a startling beep.It means that Joe wants to talk to you,but unless you take explicit action you won't be able to talk back.To respond,type the command.B1write joe.B2This establishes a two-way communication path.Now whatever Joe types on his terminal will appear on yoursand vice versa.The path is slow, rather like talking to the moon.(If you are in the middle of something, you have toget to a state where you can type a command.Normally, whatever program you are running has to terminate or be terminated.If you're editing, you can escape temporarily from the editor _read the manual.).PPA protocol is needed to keep what you type from gettinggarbled up with what Joe types. Typically it's like this:.B1.fiJoe types ``write smith'' and waits..brSmith types ``write joe'' and waits..brJoe now types his message(as many lines as he likes).When he's ready for a reply, hesignals it by typing (o), whichstands for ``over''..brNow Smith types a reply, alsoterminated by (o)..brThis cycle repeats untilsomeone gets tired; he thensignals his intent to quit with(o+o), for ``overand out''..brTo terminatethe conversation, each side musttype a ``control-d'' character aloneon a line. (``Delete'' also works.)When the other person types his ``control-d'',you will get the message ``EOT'' on your terminal..B2.PPIf you write to someone who isn't logged in,or who doesn't want to be disturbed,you'll be told.If the target is logged in but doesn't answerafter a decent interval,simply type ``control-d''..SHOn-line Manual.PPThe .UC UNIXProgrammer's Manualis typically kept on-line.If you get stuck on something,and can't find an expert to assist you,you can print on your terminal some manual section that might help.It's also useful for getting the most up-to-dateinformation on a command.To print a manual section, type``man section-name''.Thus to read up on the .C whocommand,type.B1man who.B2If the section in question isn't in part I of the manual,you have to give the section number as well, as in.B1man 6 chess.B2Of course you're out of luck if you can't remember the section name.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -