| Howto to lower the "nice" level of a user |
|
|
|
| Written by Administrator |
|
A standard user usually has a nice level of 20 so you are able to reduce the nice level of a user from 20 to 39 (0 to -19). Edit the /etc/passwd file entry for the user, and run the users shell program at a lower nice level. In the example below the user johnr's shell will at a nice level of 39 :- Before :- johnr:!:200:1:John Roebuck:/home/johnr:/usr/bin/ksh
After :-
johnr:!:200:1:John Roebuck:/home/johnr: /bin/nice -19 /usr/bin/ksh All commands run from within the shell will also run at the reduced nice level of 39. You can use the following command to check the nice levels of users programs :- ps -o "%n %u %p %P %x %y %t %c %a" |
| Last Updated on Sunday, 24 January 2010 01:04 |



The nice command lets you run a command at a priority lower than the