snippetbashTip
jobs — Shell builtin for viewing information about processes spawned by the current shell. Options other th
Viewed 0 times
shellcommandcliinformationbuiltinviewingforjobs
linux
Problem
How to use the
jobs command: Shell builtin for viewing information about processes spawned by the current shell. Options other than -l and -p are exclusive to Bash. See also: fg, bg, disown, %. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-jobs>.Solution
jobs — Shell builtin for viewing information about processes spawned by the current shell. Options other than -l and -p are exclusive to Bash. See also: fg, bg, disown, %. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-jobs>.View jobs spawned by the current shell:
jobsList jobs and their process IDs:
jobs -lDisplay information about jobs with changed status:
jobs -nDisplay only process IDs:
jobs -pDisplay running processes:
jobs -rDisplay stopped processes:
jobs -sCode Snippets
View jobs spawned by the current shell
jobsList jobs and their process IDs
jobs -lDisplay information about jobs with changed status
jobs -nDisplay only process IDs
jobs -pDisplay running processes
jobs -rContext
tldr-pages: linux/jobs
Revisions (0)
No revisions yet.