A regular user is running a long-running, CPU-intensive data analysis task. A system administrator has determined this process is negatively impacting system performance for other users and has asked the user to lower its priority. Which of the following commands can the regular user successfully execute to lower the priority of their own process (PID 12345)?
The renice command is used to modify the scheduling priority of an already running process. Regular (non-root) users are only permitted to increase the 'nice' value of processes they own. Increasing the nice value, for example to 10, lowers the process's priority, making it 'nicer' to other tasks on the system. Attempting to decrease the nice value (i.e., assign a negative value) to increase a process's priority requires superuser (root) privileges. The nice command is used to set the priority of a new command as it is launched, not to change an existing process. Using sudo requires administrative privileges, which a regular user does not have by default.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the 'nice' value do in process management?
Open an interactive chat with Bash
What are the consequences of changing a process's 'nice' value?