linux nohup
Nohup is a command in Linux that is used to run a command or script in the background even when the user logs out of the system or closes the terminal. It stands for "no hang up." When running a command with nohup, the output is redirected to a file called nohup.out in the current directory.
Syntax:
nohup command &
Example:
nohup python script.py &
This command will run the Python script named script.py in the background with nohup, and the output will be redirected to the nohup.out file. The user can log out or close the terminal, and the script will continue to run in the background.
原文地址: https://www.cveoy.top/t/topic/Yea 著作权归作者所有。请勿转载和采集!