Run the program to ignore pending signals
nohup command can run the program in a way that ignores the hang signal, and the output information of the run program will not be displayed to the terminal.
Regardless of whether the output of the nohup command is redirected to the terminal, the output is appended to the nohup.out file in the current directory. If the nohup.out file in the current directory is not writable, output is redirected to the $HOME/nohup.out
file. The command specified by the command parameter is not callable if no file can be created or opened for appending. If standard error is a terminal, then all output of the specified command written to standard error is redirected to the same file descriptor as standard output.
nohup(options)(parameters)
--help: online help;
--version: Display version information.
Programs and Options: Programs and options to run.
Use the nohup command to submit a job. If you use the nohup command to submit a job, all output of the job is redirected to a file named nohup.out by default, unless another output file is specified:
nohup command > myout.file 2>&1 &
In the above example, the output is redirected to the myout.file file.
This command means not to perform hang-up operation and download in the background.
nohup wget site.com/file.zip
The following command will generate a file named nohup.out
in the same directory, which contains the output of the running program
nohup ping -c 10 baidu.com