Questions And All Correct Answers.
A developer calls you with a problem. He was trying to debug a new daemon and mistakenly placed it on
the production machine instead of on a lab machine. To ensure that the CPU gives preference to other
processes, you need to lower the daemon's priority. The PID number is 2345.
Which command would you use to decrease the daemon's priority? - Answer renice -n 10 2345
You need to determine the priority of several processes. Which command should you enter to identify
the process ID and nice value for each process? - Answer top
what would you enter at the command prompt to start the gedit process with the highest priority
possible? (FILL IN BLANK) - Answer nice -n -20 gedit
What is the default nice value for a process not executed with the nice command? - Answer 0
Which of the following commands start the gedit program with a priority one above the default nice
priority? (-20 through 19, higher the number the lower the priority) - Answer nice -n -1 gedit
What command would you enter at the command prompt to start the gedit program in the background?
(FILL IN BLANK) - Answer gedit &
You have several processes running in the background, as showing by the jobs command below:
[1]+ Running gedit &
[2]+ Stopped crontab e
Which command will bring the gedit program to the foreground? - Answer fg 1
You have a gedit process with a job ID of 6. Which command would you enter at the command prompt to
send the process to the background? - Answer bg 6