[Previous] [Contents] [Next]

logout

Terminate a session (UNIX)

Syntax:

logout

Options:

None.

Description:

The logout command terminates a session. This command can be executed only from a shell invoked by a login command; otherwise a message is printed and the logout command is ignored.

If you execute a login command from the login shell, the shell from which it is run will be terminated. This is because by default login is an alias for exec login.

See also:

login


[Previous] [Contents] [Next]