nice -n 10 ./heavy-script.sh

Category: VPS Management

nice -n 10 ./heavy-script.sh

Run a CPU-intensive script at lower priority so it doesn't impact other services

Sets the process scheduling priority. Nice values range from -20 (highest priority) to 19 (lowest). Setting +10 means the process yields CPU to other processes. Useful for backup scripts and batch jobs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.