LPI Exam Questions

What command changes the priority of the process runnin…

What command changes the priority of the process running with process id of 12345 to the highest priority?

A.
/usr/bin/renice +20 1234

B.
/usr/bin/renice -20 12345

C.
/bin/setpriority +20 12345

D.
/bin/setpriority -20 12345

Explanation:
To change the priority of running process we use the renice command. Default priority is 0, highest priority is -20 and lowest priority is 19. The path of renice
command is /usr/bin/renice.