renice
processLinux/Unix
The renice command is one of the most frequently used commands in Linux/Unix-like operating systems. renice Alter priority of running processes
Quick Reference
Command Name:
renice
Category:
process
Platform:
Linux/Unix
Basic Usage:
renice [options] [arguments]
Common Use Cases
Syntax
renice priority [[-p] pid...] [[-g] pgrp...] [[-u] user...]
Options
Option | Description |
---|---|
-p, --pid |
Interpret arguments as process IDs (default) |
-g, --pgrp |
Interpret arguments as process group IDs |
-u, --user |
Interpret arguments as usernames |
-n, --priority |
Specify the nice increment value (some versions) |
-h, --help |
Display help message and exit |
-v, --version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the renice
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sudo renice +5 -p 1234