In this lesson, we will learn how to manage process priority.
Viewing Process Priority with nice
The nice
command is used to set or adjust the priority of a process.
nice -n priority command
- Replace
priority
with a value from -20 to 19.
Modifying Process Priority with renice
The renice
command allows you to change the priority of a running process.
renice priority -p PID
- Replace
priority
with a value from -20 to 19. - Replace
PID
with the process ID.
Remember, managing processes is a crucial aspect of Linux system administration. Understanding how to monitor, terminate, and adjust process priorities will help maintain a stable and efficient system.