Which command lowers the niceness of process 100 by 10?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Which command lowers the niceness of process 100 by 10?

Explanation:
Renice adjusts a running process’s scheduling priority by changing its niceness value. Since lower niceness means higher priority, lowering niceness by 10 requires a negative adjustment and the target PID. The correct command uses a negative increment with -n and specifies the process with -p, giving: renice -n -10 -p 100. Using a positive value would raise niceness (lower priority), and pointing to a different PID or omitting -n would not perform the desired relative change.

Renice adjusts a running process’s scheduling priority by changing its niceness value. Since lower niceness means higher priority, lowering niceness by 10 requires a negative adjustment and the target PID. The correct command uses a negative increment with -n and specifies the process with -p, giving: renice -n -10 -p 100. Using a positive value would raise niceness (lower priority), and pointing to a different PID or omitting -n would not perform the desired relative change.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy