HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

logout — Exit a login shell. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-logo

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandexitlogincliinformationmorelogout

Problem

How to use the logout command: Exit a login shell. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-logout>.

Solution

logout — Exit a login shell. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-logout>.

Exit a login shell:
logout


Exit a login shell and specify a return value:
logout {{exit_code}}

Code Snippets

Exit a login shell

logout

Exit a login shell and specify a return value

logout {{exit_code}}

Context

tldr-pages: common/logout

Revisions (0)

No revisions yet.