PrepAway - Latest Free Exam Questions & Answers

Which of the following commands will you use to lists the jobs that are running in the background and in the f

Which of the following commands will you use to lists the jobs that are running in the background
and in the foreground?

PrepAway - Latest Free Exam Questions & Answers

A.
top

B.
bg

C.
job

D.
jobs

Explanation:

The jobs command lists the jobs that are running in the background and in the foreground. If the
prompt is returned with no information, no jobs are present.
Syntax:
jobs [-p | -l] [-n] [-p] [-x] [job id]
Some important options used with jobs command are as follows:

Answer option A is incorrect. The top command is used to produce a frequently-updated list of
processes. By default, the processes are ordered by percentage of CPU usage, with only the “top”
CPU consumers shown. This command shows how much processing power and memory are
being used, as well as other information about the running processes. The following figure
demonstrates the output of the top command:

Answer option B is incorrect. The bg command can be used to resume in the background when a
process is suspended.
Answer option C is incorrect. There is no such command as job.


Leave a Reply