logout Command

Purpose

Stops all processes on a port.

Syntax

logout

Description

The logout command terminates all processes either with the same controlling terminal as the present process or with all processes which have this terminal open. Processes that are not children of the present process are terminated upon access to the terminal. The present process is also terminated. If the login command user and the logout command user do not match, the logout command permission is denied, and the command stops.

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

From a shell started by the ksh or bsh command, enter:

logout

Files

Item Description
/usr/bin/logout Contains the logout command.
/etc/utmp Contains a record of logged-in users.