GNU/Linux Command – JOBS

jobs — Lists the active jobs

Summary :

jobs is bash build-in command, which is used to list the actives jobs in the current shell.

Examples :
$ sleep 150 & -- Just run this command 5 times to create few dummy active jobs for our testing. $ jobs -- List all active jobs. $ jobs -l -- List all active jobs with pid. $ jobs -p -- List only the pid of all active jobs. $ jobs -n -- List only jobs that have changed statussince the last notification are printed. $ jobs -r -- Show only running jobs. $ jobs -s -- Show only stopped jobs.
Read : man jobs / help jobs (in Bash Shell)

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: