renice

Alters the scheduling priority/nicenesses of one or more running processes. Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process). More information: <https://manned.org/renice>.

Install

All systems
curl cmd.cat/renice.sh
Debian Debian
apt-get install bsdutils
Ubuntu
apt-get install bsdutils
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install bsdutils
CentOS
yum install util-linux
Fedora
dnf install util-linux
Windows (WSL2)
sudo apt-get update sudo apt-get install bsdutils
OS X
brew install util-linux
Raspbian
apt-get install bsdutils
Docker
docker run cmd.cat/renice renice powered by Commando

Alters the scheduling priority/nicenesses of one or more running processes. Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process). More information: <https://manned.org/renice>.

  • Change priority of a running process:
    renice -n niceness_value -p pid
  • Change priority of all processes owned by a user:
    renice -n niceness_value -u user
  • Change priority of all processes that belong to a process group:
    renice -n niceness_value --pgrp process_group

© tl;dr; authors and contributors