Linux and Unix nohup command

Quick links

About nohup
Syntax
Examples
Related commands
Linux and Unix main page

About nohup

Runs a command, making it immune to any HUP (hangup) signals while it is running.

Syntax

nohup COMMAND [ARG]...
nohup OPTION...

Options

--help display a help message and exit.
--version output version information and exit.

If standard input is a terminal, nohup redirects it from /dev/null. If standard output is a terminal, append output to "nohup.out" if possible, "$HOME/nohup.out" otherwise. If standard error is a terminal, redirect it to standard output. To save output to file FILE, use "nohup COMMAND > FILE".

Examples

nohup find -size +100k > log.txt

Run the find command, instructing it to search for any file bigger then 100k. find will continue to search regardless of the user's connection to the terminal, and log results to the file log.txt.

Related commands

nice