commands

nohup — ignore hangup for command

Start command with SIGHUP ignored; terminal-connected streams may be redirected. Does not background or supervise a service. Explicitly redirect streams and wait in the lab. Use a fresh private workspace, ordinary user and bounded child processes; no sudo.

Formal Syntax & Structure

linux syntaxlinux
nohup COMMAND [ARG...]

Parameters & Attributes

NameTypeDescription
COMMANDoperandprogram
ARGoperandarguments

Return Value

exit status and output

Start command with SIGHUP ignored; terminal-connected streams may be redirected. Does not background or supervise a service. Explicitly redirect streams and wait in the lab.

Working Example

Example Snippetlinux
nohup bash -c 'printf "report ready\n"' </dev/null > report.txt 2> report.errcat report.txt
Linux Reference