Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

jobs command: List the running task or processes in the current session

Date: 2010-04-11 00:00:00 -0400

The jobs command will list the running, stopped, foreground and background jobs or task running in the current session.

Syntax

jobs [options]

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 &

      xterm &

      Now run

      jobs

      This could be the output.
      [1]-  Running                 xterm &
      [2]+  Running                 xterm &
      

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.