UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: loggerChapter 2
Unix Commands
Next: Reference: logname
 

login

login [options]

Sign on and identify yourself to the system. At the beginning of each terminal session, the system prompts you for your username and, if relevant, a password. The options aren't normally used.

The Korn shell and the C shell have their own, built-in versions of login. See Chapter 4 and Chapter 5 for more information.

Options

user

Sign on as user (instead of being prompted).

-dtty

Specify the pathname of the tty that serves as the login port.

-h host [term]

Used for remote logins via telnet to indicate the login is from host host and that the user's terminal type is term. Solaris only.

-p

Pass the current environment to the new login session. Solaris only.

-r host

Used for remote logins via rlogin to indicate the login is from host host. Solaris only.

var=value

When specified after the username, assign a value to one or more environment variables. PATH and SHELL can't be changed.

value

Pass values into the environment. Each value that does not contain an = is assigned to a variable of the form Ln, where n starts at 0 and increments. Solaris only.


Previous: Reference: loggerUNIX in a Nutshell: System V EditionNext: Reference: logname
Reference: loggerBook IndexReference: logname

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System