"exit" Command

Learn all about exit command

HOME

exit - cause normal process termination or exit the shell

root:~# man exit
          
exit [n]

Exits the shell/process with a status of N.If N is omitted, then exit status is that of the last command executed.