cmdxray / commands / nohup

What does nohup do?

run a command immune to hangups, ignoring SIGHUP so it survives logout.

▸ Explain your own nohup command →

nohup examples, explained

$ nohup ./server &

  • nohuprun a command immune to hangups, ignoring SIGHUP so it survives logout
  • ./serveran argument passed to the command
  • &run the preceding command in the background

$ nohup python app.py > out.log 2>&1 &

  • nohuprun a command immune to hangups, ignoring SIGHUP so it survives logout
  • pythonan argument passed to the command
  • app.pyan argument passed to the command
  • >redirect output into the given file (overwrite)
  • out.logan argument passed to the command
  • 2>&1send error output to the same place as normal output
  • &run the preceding command in the background

nohup flags & options

--helpshow usage information and exit
--versionprint version information and exit

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.