Linux and Unix nohup command
Quick links
About nohup
Syntax
Examples
Related commands
Linux and Unix main page
Runs a command even if the session is disconnected or the user logs out.
nohup command [argument...]
nohup -p [-Fa] pid [pid...]
nohup -g [-Fa] gpid [gpid...]
nohup command [argument...]
| -a | Always changes the signal disposition of target processes. This option is valid only when specified with -p or -g. |
| -F | Force. Grabs the target processes even if another process has control. This option is valid only when specified with -p or -g. |
| -g | Operates on a list of process groups. This option is not valid with -p. |
| -p | Operates on a list of processes. This option is not valid with -g. |
| pid | A decimal process ID to be manipulated by nohup -p. |
| gpid | A decimal process group ID to be manipulated by nohup |
| --help | Displays help screen. |
| --version | Output version information and exit. |
nohup find -name '*' -size +1000k > log.txt
In the above example, the find command would be ran using nohup and continue to perform a find for any file bigger then 1000k regardless of connectivity logging everything found to the log.txt file.
