LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

bye

Exit the shell

TLDR

Exit the current shell session
$ bye
copy
Exit with a specific status code
$ bye [exit_code]
copy

SYNOPSIS

bye [n]

DESCRIPTION

bye is a zsh builtin that terminates the current shell session. It is functionally identical to exit. When called, it runs any EXIT traps and zshexit hooks before closing the shell.If an optional numeric argument is provided, it is used as the exit status returned to the parent process. Without an argument, the exit status of the last command executed is used.

CAVEATS

bye is specific to zsh and not available in bash or other shells. For portability, use exit instead. If there are running background jobs, zsh may warn before exiting on the first attempt.

HISTORY

bye was included in zsh as a convenience alias for exit, reflecting a common command used in interactive systems like FTP clients and some early Unix shells.

SEE ALSO

exit(1), logout(1), zsh(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid