nice -n 10: Launch a Command at Lower CPU Priority

Start a command with a higher niceness so it yields CPU time to your interactive programs.

LinuxprocessperformanceTerminalLow risk
Run nice -n 10 ./backup-script.sh to launch the task with niceness 10, making it a low-priority background job; combine with & for the shell background.

01Command

Command
$ nice -n 10 ./backup-script.sh

02What it does

Niceness scales from -20 (highest priority) to 19 (lowest); the default niceness is inherited from the parent shell (usually 0). nice -n 10 launches the command with niceness 10, so the scheduler gives it CPU only after normal-priority work is served. Without -n, plain nice <command> uses the default adjustment of 10 as well. Negative values (higher priority) require root; ordinary users can only lower priority — and for a process that is already running, use renice instead.

03Risk

RiskLow risk

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-19 · Category: System & Settings

06Related solutions