The renice command is used to change the priority of a running process. Which is typically used to adjust the CPU priority of processes to optimize system performance.
- About renice: To alter priority of running processes
- Comes From: util-linux-ng-2.17.2
- Configuration Files:
- Path: /usr/bin/renice
Examples:
1. To set the priority for process
$ renice -n 20 -p 2112 $ renice –priority 20 -p 2112 |
2. To change the priority for process os a group
$ renice -n 20 -g SUPPORT |
3. To change the priority for process os a user
$ renice -n 20 u mike |
4. To get the version
$ renice -v $ renice –version |
5. To get the help
$ renice -h $ renice –help |
Related Commands: getpriority, setpriority