Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
login [name | option]
Log into the system. login asks for a username (name can be supplied on the command line) and password (if appropriate).
If successful, login updates accounting files, sets various environment variables, notifies users if they have mail, and executes startup shell files.
Only the root user can log in when /etc/nologin exists. That file is displayed before the connection is terminated. Furthermore, root may connect only on a tty that is listed in /etc/securetty. If ~/.hushlogin exists, execute a quiet login. If /var/adm/lastlog exists, print the time of the last login.
Suppress second login authentication.
Specify name of remote host. Normally used by servers, not humans; may be used only by root.
Preserve previous environment.