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: 2022-05-26

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.