In Unix, how do I log into and out of my account?
Logging into Unix
Before beginning, make sure your Caps Lock key is off.
On most keyboards it is above your left Shift key.
To log into your Unix account:
- At the
Login:prompt, enter your username.
- At the
Password:prompt, enter your password. For security reasons, your password does not appear on the screen when you type it. If you enter an incorrect password, you'll be asked to enter your username and password again. (Be aware that theBackspaceorDelkeys might not work properly while you are entering your password.)
- On many systems, a page of information and announcements, called a
banner or "message of the day" (MOD), will be displayed on your
screen. It notifies you of system changes, scheduled maintenance, and
other news.
- The following line may appear after the banner:
TERM = (vt100)
Normally, you can press
Enterto set the correct terminal type. If you know that the suggested terminal type is incorrect, enter the terminal type that your communications program is using. If you are unsure of the correct type, entervt100. - After a pause, the Unix shell prompt will
appear.
- You can now enter commands at the Unix prompt.
Logging out of Unix
- At the Unix prompt, enter:
exit
If Unix responds with the message "There are stopped jobs", enter:
fgThis brings a stopped job into the foreground so that you can end it gracefully (e.g., save your file from an editing session). Exit the job in the appropriate way for that particular program, and at the Unix prompt, again enter
exitorlogout. - If you are using a personal computer, close or quit the communications program.
At Indiana University, to get support for personal or departmental Linux or Unix systems, see At IU, how do I get support for Linux or Unix?
Also see:
- In Unix, how do I check who else is logged into the same computer as I am?
- In Unix, how do you turn off the banner?
- In Unix, how do I kill another login session remotely?
- In Unix, how do I see if my friends or colleagues are logged into the same Unix machine as I am?
- Introduction to Unix commands
Last modified on August 22, 2008.






