jobs
ProcessesFundamentals In real LinuxList 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
| -l | Also show PIDs |
| -p | Only the process IDs |
| -r / -s | Only running / stopped jobs |
Examples
$ sleep 100 & jobs
Start a background job and list it
Explain