jobs Flashcards

1
Q

jobs

A

Lists the active jobs. JOBSPEC restricts output to that job. Without options, the status of all active jobs is displayed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

jobs

  • l
  • n
  • p
  • r
  • s
A
  • l, Lists process IDs in addition to the normal information.
  • n, Lists only processes that have changed status since the last notification.
  • p, List process IDs only.
  • r, Restrict output to running jobs.
  • s, Restrict output to stopped jobs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

jobs -x command [args]

A

If the -x is supplied, COMMAND is run after all job specifications that appear in ARGS have been replaced with the process ID of that job’s process group leader.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

%Number : Use the job number such as %1 or %2.

%String : Use the string whose name begins with suspended command such as %commandNameHere or %ping.

A

%+ OR %% : Refers to the current job.

%- : Refers to the previous job.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly