ODOC: jobs

jobs — Lists the active jobs

Summary :

jobs is bash build-in command, which is used to list the actives jobs in the current shell.

Examples :

$ sleep 60 & — Just run this command 5 times. Create dummy active jobs for testing.

$ jobs — List all active jobs.

$ jobs -l — List all active jobs with pid.

$ jobs -p — List only the pid of all active jobs.

$ jobs -n — List only jobs that have changed status since the last notification are printed.

$ jobs -r — Show only running jobs.

$ jobs -s — Show only stopped jobs.

Read : man jobs / help jobs (in Bash Shell)

Tech Tags: linux