nohup(1)

nohup1

Invoke a utility immune to hangups

Usage

nohup [--] utility [arguments]

Overview

The nohup utility invokes utility with its arguments and at this time sets the signal SIGHUP to be ignored. If the standard output is a terminal, the standard output is appended to the file nohup.out in the current directory. If standard error is a terminal, it is directed to the same place as the standard output.

Some shells may provide a builtin nohup command which is similar or identical to this utility. Consult the builtin(1) manual page.

Environment

The following variables are utilized by nohup:

HOME

If the output file nohup.out cannot be created in the current directory, the nohup utility uses the directory named by HOME to create the file.

PATH

Used to locate the requested utility if the name contains no ‘/’ characters.

Exit status

The nohup utility exits with one of the following values:

126

The utility was found, but could not be invoked.

127

The utility could not be found or an error occurred in nohup.

Otherwise, the exit status of nohup will be that of utility.

Releases

87 releases since FreeBSD 2.0.5-RELEASE; the text changed 42 times.

  1. 2.0.5–2.2.2
  2. 2.2.5–3.4
  3. 3.5–3.5.1
  4. 4.0
  5. 4.1–4.2
  6. 4.3
  7. 4.4–4.11
  8. 5.0–5.5
  9. 6.0–6.3
  10. 6.4
  11. 7.0
  12. 7.1
  13. 7.2
  14. 7.3
  15. 7.4
  16. 8.0
  17. 8.1
  18. 8.2
  19. 8.3
  20. 8.4
  21. 9.0
  22. 9.1
  23. 9.2
  24. 9.3
  25. 10.0
  26. 10.1
  27. 10.2
  28. 10.3
  29. 10.4
  30. 11.0
  31. 11.1
  32. 11.2
  33. 11.3
  34. 11.4
  35. 12.0
  36. 12.1
  37. 12.2
  38. 12.3
  39. 12.4
  40. 13.0–13.2
  41. 13.3–13.5
  42. 14.0–14.5
  43. 15.0–16.0

Standards

The nohup utility is expected to be IEEE Std 1003.2 (“POSIX.2”) compatible.

Bugs

Two or more instances of nohup can append to the same file, which makes for a confusing output.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.