CompTIA Linux+ (XK0-004) — Question 289
A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate. The administrator uses the command renice -n -
5 -p2864, but it does not solve the issue. Which of the following commands should the administrator execute to correct the issue?
Answer options
- A. nice -n 5 -p 2864
- B. nice -n -5 -p 2864
- C. renice -n 10 -p 2864
- D. renice -n -10 -p 2864
Correct answer: C
Explanation
The correct answer is C, as increasing the niceness value to 10 via renice will lower the priority of the process, allowing it to consume fewer resources. Options A and B do not address the issue because they either do not change the niceness effectively or mistakenly attempt to increase the priority. Option D would further increase the priority negatively, exacerbating the resource consumption problem.