jobs Linux Commands

What is Linux jobs Command?

Explanation

jobs COMMAND:

jobs command is used to list the jobs that you are running in the background and in the foreground. If the prompt is returned with no information no jobs are present.

SYNTAX :


jobs [options]

OPTIONS:


-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.

EXAMPLE:


  1. jobs -l

    Lists the jobs that you are running in the foreground (or) background.
  2. jobs -p

    Display only the process Id for the listed jobs.

Ask Questions

Ask Question