setpgid(1)

setpgid1

Run a program in a new process group

Usage

setpgid [options] program [arguments]

Overview

setpgid runs a program in a new process group.

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

Daan De Meyer <[email protected]>

Reporting bugs

For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.

Availability

The setpgid command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.

From util-linux 2.42.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.