Home > Article > Operation and Maintenance > How to close the terminal in linux
How to close the terminal in Linux: 1. Use the exit command to close the terminal, which is used to exit the current shell; 2. Use the shortcut key "ctrl d" to close the terminal; 3. Click the terminal in the graphical environment The "x" in the upper right corner closes the terminal.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to close the terminal in Linux
#If it is in a graphical environment, click the [x] of the terminal in the upper right corner to close the terminal Withdrew.
Or directly press [ctrl d], then the terminal can also be exited with shortcut keys.
If you enter the command [exit] in command mode, the terminal will automatically exit at this moment.
Linux exit command is used to exit the current shell.
Executing exit causes the shell to exit with the specified status value. If the status value parameter is not set, the shell exits with the default value. A status value of 0 represents successful execution, and other values represent failed execution. Exit can also be used in scripts to leave the executing script and return to the shell.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to close the terminal in linux. For more information, please follow other related articles on the PHP Chinese website!