🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Linux Beginner

What is Nohup?

A command that runs a process immune to hangup signals, allowing it to continue after the terminal session ends.

Nohup (no hang up) prevents a process from receiving the SIGHUP signal when the terminal closes. Usage: nohup long-running-command &. Output is redirected to nohup.out by default.

Alternatives include screen, tmux (more feature-rich terminal multiplexers), systemd services (for production), and disown (detach already-running processes). Nohup is the simplest option for quick background tasks.