MacOS 14, M3 Pro, default zsh
shell
I am trying to find the man page for exit
corresponding to this entry on SS64. Using man -a exit
loads builtin(1) twice, exit(3) once, and Tcl built-in command exit(n) twice.
Can I access the entry on SS64 linked above locally through Terminal? whatis exit
is hard to parse, but I couldn't find anything relevant there.
Best Answer
exit
is usually provided by your shell, it is not a separate binary.You will note that there is no
exit
binary in either of/bin
or/usr/bin
, and that the man page forexit
pulls upbuiltin(1)
, which refers you to the man page for your shell.For example, I use
ksh
, this is from theksh
man page:The
exit
builtin inksh
also has its own man page (most builtins inksh
have integrated man pages):You can display the integrated man pages for
ksh
builtins with the--man
argument.