Back to the command reference

jobs

ProcessesFundamentals In real Linux

List jobs of the current shell

Name: jobs

This command needs a real Linux system; you can practise it in real Linux mode.

Description

jobs is a shell builtin listing the background and stopped jobs of the current shell. Each has a number you can refer to as %N with fg, bg and kill.

Syntax

jobs [OPTION]

Common options

-lAlso show PIDs
-pOnly the process IDs
-r / -sOnly running / stopped jobs

Examples

  • $ sleep 100 & jobs

    Start a background job and list it

    Explain

Related