Process Management

nohup

Run a command immune to hangup signals, allowing it to continue after logout.

Synopsis

syntax
nohup COMMAND [ARG]...

Examples

Run server in background immune to hangup
nohup ./server.sh &
Run with redirected output
nohup python3 script.py > output.log 2>&1 &
Run detached and disown from shell
nohup long-task.sh &; disown

About nohup

The `nohup` command run a command immune to hangup signals, allowing it to continue after logout. Process management commands let you monitor, control, and schedule running processes.

Linux is a multitasking operating system, and understanding how to list processes, send signals, adjust priorities, and manage background jobs is vital for system administration and debugging performance issues. The command accepts 0 commonly used flags shown above, though the full set of options is available in the man page (`man nohup`).

The 3 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Process Management Commands

Other commands in the Process Management category

Related tools