Skip to content

Instantly share code, notes, and snippets.

@yitsup2u
Last active August 29, 2015 14:06
Show Gist options
  • Save yitsup2u/02bd1f77bcd03a80a906 to your computer and use it in GitHub Desktop.
Save yitsup2u/02bd1f77bcd03a80a906 to your computer and use it in GitHub Desktop.
nice : linux command, process priority
Setting priority on new processes
nice -n 10 apt-get upgrade
Setting Priority on Existing Processes
renice 10 -p 21827
Note:
The Linux niceness scale goes from -20 to 19. The lower the number the more priority that task gets.
Only root can apply negative nice values.
Reference:
http://www.nixtutor.com/linux/changing-priority-on-linux-processes/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment