Beginner Package: bash builtin

jobs

List background and stopped jobs in the current shell session.

Syntax

jobs [options]

Description

jobs shows the background and suspended jobs started from the current shell, each with a job number that can be used with fg, bg or kill to control it without knowing its PID.

Examples

jobs
List background/stopped jobs in this shell
fg %1
Bring job number 1 to the foreground
bg %1
Resume a stopped job in the background

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux

Put it into practice

Learn this in context