nice
process managementLinux/Unix
The nice command is one of the most frequently used commands in Linux/Unix-like operating systems. nice Run a command with modified scheduling priority
Quick Reference
Command Name:
nice
Category:
process management
Platform:
Linux/Unix
Basic Usage:
nice [options] [arguments]
Common Use Cases
Syntax
nice [option] [command [arguments...]]
Options
Option | Description |
---|---|
-n, --adjustment=N |
Add integer N to the niceness (default 10) |
--help |
Display help and exit |
--version |
Output version information and exit |
Niceness Values:
Range | Description |
---|---|
-20 to -1 | High priority (requires root privileges) |
0 | Default priority |
1 to 19 | Low priority (19 is the lowest) |
Examples
How to Use These Examples
The examples below show common ways to use the nice
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
nice ls -la