Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

nice - modify the scheduling priority of a command

Date: 2009-01-01 00:00:00 -0400

nice is a command that allows you to change the scheduling priority of a command from -20 the most favorable to 19 the least favorable.

Sintax

nice -n NUMBER

Where NUMBER is an integer number from -20 to 19, if you do not use the -n option, the niceness will be increased in 10 by default.

Example:

sudo nice -n 4 tail -f /var/log/messages

Now if you start htop you may see that tail is running with a niceness of 4.

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.