jobs command: List the running task or processes in the current sessionFollow @ggarron
jobs command will list the running, stopped, foreground and background jobs or task running in the current session.
The options are:
- -l Report the process group ID and working directory of the jobs.
- -n Display only jobs that have stopped or exited since last notified.
- -p Displays only the process IDs for the process group leaders of the selected jobs.
run some jobs to see it in action:
xterm &Now run
jobsThis could be the output.
- Running xterm & + Running xterm &