Process niceness

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2024-04-25

Process niceness varies from -20 to 20, with positive values being the nicest (i.e. giving most priority to other processes)

Get the niceness of a given process by

$ ps -l pid

The output will show a column "NI", which stands for niceness.