logout: logout [n]

Exit a login shell.

Exits a login shell with exit status N. Returns an error if not executed in a login shell.