nerdexam
CompTIA

XK0-005 · Question #612

An administrator needs to increase the system priority of a process with PID 2274. Which of the following commands should the administrator use to accomplish this task?

The correct answer is A. renice -n -15 2274. The renice command is used to change the priority of a running process by specifying its PID and the new nice value. The -n flag indicates the amount of change in the nice value, which can be positive or negative. A lower nice value means a higher priority, so -15 will increase…

System Management

Question

An administrator needs to increase the system priority of a process with PID 2274. Which of the following commands should the administrator use to accomplish this task?

Options

  • Arenice -n -15 2274
  • Bnice -15 2274
  • Cecho "-15" > /proc/PID/2274/priority
  • Dps -ef | grep 2274

How the community answered

(61 responses)
  • A
    72% (44)
  • B
    15% (9)
  • C
    10% (6)
  • D
    3% (2)

Explanation

The renice command is used to change the priority of a running process by specifying its PID and the new nice value. The -n flag indicates the amount of change in the nice value, which can be positive or negative. A lower nice value means a higher priority, so -15 will increase the priority of the process with PID 2274. The administrator needs to have root privileges to do this.

Topics

#Process Management#renice command#Nice Value#System Administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice