nohup
runs a command immune to hangups
TLDR
Run command immune to hangups
$ nohup [command] &
Run with output to file$ nohup [command] > [output.log] 2>&1 &
Run script in background$ nohup [./script.sh] &
Run with custom output$ nohup [command] > [custom.out] &
SYNOPSIS
nohup command [arguments]
DESCRIPTION
nohup runs a command immune to hangups. Process continues after logout.
The tool detaches from terminal. Output goes to nohup.out by default.
PARAMETERS
COMMAND
Command to run.ARGUMENTS
Command arguments.--help
Display help information.
CAVEATS
Combine with & for background. Output to nohup.out. Signal handling modified.
HISTORY
nohup is a classic Unix command for running processes that survive terminal disconnection.
