SETPGID(1) User Commands SETPGID(1)

# [NAME](#NAME)

setpgid - run a program in a new process group

# [SYNOPSIS](#SYNOPSIS)

**setpgid** \[options] *program* \[*arguments*]

# [DESCRIPTION](#DESCRIPTION)

**setpgid** runs a program in a new process group.

# [OPTIONS](#OPTIONS)

**-f**, **--foreground**

Make the new process group the foreground process group of the controlling terminal if there is a controlling terminal.

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

Display help text and exit.

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

Display version and exit.

# [AUTHORS](#AUTHORS)

*Daan De Meyer* &lt;daan.j.demeyer@gmail.com&gt;

# [SEE ALSO](#SEE_ALSO)

[**setpgid**(2)](/man/os/util-linux/setpgid.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 **setpgid** 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: setpgid(1) from util-linux 2.42.4-r1 (Chainguard OS)
