• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

jobs Command Options In Linux

by admin

Each bash shell keeps track of the processes that are running from that shell. These processes are referred to as jobs. To list the currently running jobs, execute the jobs command from the bash shell, like so:

$ jobs
[1]- Running sleep 250 & 
[2]+ Running sleep 999 &

Each job is assigned a job number that controls the job. Refer to this job number using the following syntax:

%job_number

jobs Command Options

Option Description
-l Provide more information about each job listed. This information shall include the job number, current job, process group ID, state, and the command that formed the job.
-p Display only the process IDs for the process group leaders of the selected jobs.

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 7 : How to configure cache-only nameserver
  2. arp Command Examples in Linux
  3. bastet: Clone of the game Tetris in the terminal
  4. dkms Command Examples in Linux
  5. “az storage container” Command Examples
  6. How to change the default location (/var/cache/yum) of yum cache
  7. smbmap Command Examples in Linux
  8. fzf: Command-line fuzzy finder
  9. git init: Initializes a new local Git repository
  10. How to mount and umount a file system in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright