OS Manuals

setpgid(1)

setpgid - run a program in a new process group

SETPGID(1) User Commands SETPGID(1)

setpgid - run a program in a new process group

setpgid [options] program [arguments]

setpgid runs a program in a new process group.

-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.

Daan De Meyer <daan.j.demeyer@gmail.com>

setpgid(2)

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

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/>.

2026-10-19 util-linux 2.42.4

util-linux 2.42.4-r1 · os · ingested 2026-10-20