How to use the exit command on Linux system
This article mainly shows you "Linux system exit command how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Linux system exit command how to use" this article.
Exit is a very simple command with no parameters. Using this command in a graphical interface will only close the terminal, while in command-line mode, it will exit the system and return to the login interface.
Syntax exit [status value] case demonstrates the exit command-> this command is used to exit the current shell or terminal
Remarks:
1) the convention of exit code (exit status or exit code):
2) check the example exit code of the previous command or script:
3) in the script, determine the number of parameters; print the usage mode if there is no match, and exit
4) in the script, delete the temporary file when you exit
5) combination of exit and & & or | |
The above is all the contents of this article entitled "how to use exit commands in Linux system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!