SETSID(1) User Commands SETSID(1)

# [NAME](#NAME)

setsid - run a program in a new session

# [SYNOPSIS](#SYNOPSIS)

**setsid** \[options] *program* \[*arguments*]

# [DESCRIPTION](#DESCRIPTION)

**setsid** runs a program in a new session. The command calls [**fork**(2)](/man/os/util-linux/fork.2) if already a process group leader. Otherwise, it executes a program in the current process. This default behavior is possible to override by the **--fork** option.

# [OPTIONS](#OPTIONS)

**-c**, **--ctty**

Set the controlling terminal to the current one.

**-f**, **--fork**

Always create a new process.

**-w**, **--wait**

Wait for the execution of the program to end, and return the exit status of this program as the exit status of **setsid**.

**-h**, **--help**

Display help text and exit.

**-V**, **--version**

Display version and exit.

# [AUTHORS](#AUTHORS)

*Rick Sladkey* &lt;jrs@world.std.com&gt;

# [SEE ALSO](#SEE_ALSO)

[**setsid**(2)](/man/os/util-linux/setsid.2)

# [REPORTING BUGS](#REPORTING_BUGS)

For bug reports, use the *issue tracker* &lt;https://github.com/util-linux/util-linux/issues&gt;.

# [AVAILABILITY](#AVAILABILITY)

The **setsid** command is part of the util-linux package which can be downloaded from *Linux Kernel Archive* &lt;https://www.kernel.org/pub/linux/utils/util-linux/&gt;.

2026-10-19 util-linux 2.42.4

---

Document: setsid(1) from util-linux 2.42.4-r1 (Chainguard OS)
