Open In App

exit command in Linux with Examples

exit command in linux is used to exit the shell where it is currently running. It takes one more parameter as [N] and exits the shell with a return of status N. If n is not provided, then it simply returns the status of last command that is executed. Syntax:

exit [n]

Options for exit command – 

Article Tags :