
introduction(9) | introduction(9) |
Logging In
To log in you must have a valid user name and password, which can be obtained from your system adminis- trator.
When a connection has been established, the system displays login: on your terminal. Type your user name and press the Return key. Enter your password (it is not echoed by the system) and press Return.
A list of copyright notices and a
It is important that you type your login name with lowercase letters, if possible. If you type uppercase letters,
When you log in successfully, the system starts your login shell. The default is the POSIX shell, /usr/bin/sh . The POSIX shell (and its predecessors, the Korn and Bourne shells) use $ as the default prompt. The C shell uses %.
See login(1) for more on login, passwd(1) to change your password, chsh(1) to change your login shell.
Logging Out
You can log out of the shells by typing an exit command or the eof
How to Communicate Through Your Terminal
stty(1) tells you how to describe the characteristics of your terminal to the system. pro®le(4) explains how to accomplish this task automatically every time you log in.
Special Interactive Characters
A number of special characters are used to control the input and output of your terminal. These characters have defaults and can be rede®ned with the stty command (see stty(1)).
stty | Default At Login | Common |
Name | Character (ASCII Name; Key Names) | Rede®nition |
eof | ^D (EOT) |
|
erase | # | ^H (BS; Backspace) |
kill | @ | ^U (NAK), ÃX (CAN) |
intr | Ã? (DEL; Delete, Rub, Rubout) | ^C (ETX) |
quit | Ã\ (FS) |
|
start | ÃQ (DC1; |
|
stop | ÃS (DC3; |
|
The eof character terminates "®le" input from the terminal, as read by programs and scripts. By exten- sion, eof can also terminate the shell (see the Logging Out subsection above).
The kill character deletes all characters typed before it on a terminal input line. The erase character erases the last character typed. Successive uses of erase will erase characters back to, but not beyond, the beginning of the input line.
The intr character generates an interrupt signal that bypasses the input buffer. This signal generally causes whatever program you are running to terminate. It can be used to stop a long printout that you don't want. However, programs can arrange either to ignore this signal altogether, or to be noti®ed when it happens (instead of being terminated). For example, the vi editor catches interrupts and stops what it is doing, instead of terminating, so that an interrupt can be used to halt an editing operation without losing
Introduction−4 | − 4 − |