nohup command [args...] &Arguments explained
- command is the program to start.
- & backgrounds the command in the shell.
- Output should usually be redirected explicitly.
Common examples
nohup ./long-job > long-job.log 2>&1 &Starts a job that keeps running and writes output to a log file.
jobsShows the shell job if it belongs to the current shell.
| Field | Details |
|---|---|
| Command | nohup |
| Category | Jobs and Background Execution |
| Primary use | Runs a command immune to terminal hangup. |
| Syntax | nohup command [args...] & |