Linux logout command
The Linux logout command is used to log out of the system.
The logout command lets the user log out of the system, and its function corresponds to that of the login command.
Syntax
logout
Examples
Log out of the system:
[root@example.com ~]# logoutOther extensions
Linux Command Reference