logout: exit a login shell
logout
Gotchas
- Only for a login shell (the one SSH gives you, or
sudo -i). In any other shell: logout: not login shell: use `exit'. - Ctrl+D on an empty prompt and exit do the same; bash prints "logout" as it leaves.
Try logout in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.