---
name: "setpgid"
section: "1"
platform: "linux"
package: "util-linux"
version: "2.42.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/setpgid"
---

# setpgid(1)

run a program in a new process group

## NAME

setpgid - run a program in a new process group

## SYNOPSIS

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

## DESCRIPTION

**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* \<daan.j.demeyer@gmail.com\>

## SEE ALSO

[**setpgid**(2)](/setpgid/2.md)

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