setsid Command Examples

Run a program in a new session if the calling process is not a process group leader. The created session is by default not controlled by the current terminal. More information: https://manned.org/setsid.

setsid {{program}}

setsid {{program}} > /dev/null 2>&1

setsid --fork {{program}}

setsid --wait {{program}}

setsid --ctty {{program}}