Why does `nice` with a negative argument (e.g. `nice -15`) increment niceness?
11
votes
1
answer
2465
views
My
nice
is from GNU coreutils 9.1. I observed that nice -15
is equivalent to nice -n 15
:
nice # prints 0 for me, the base niceness is 0
nice -n 15 nice # prints 15, this is expected
sudo nice -n -15 nice # prints -15, this is expected
nice -15 nice # prints 15
-15
is a negative number. Why does it increment the niceness in the last example above? The manual (e.g. in Debian 12) does not explain this.
Asked by Kamil Maciorowski
(24294 rep)
Mar 21, 2024, 12:07 PM
Last activity: Mar 22, 2024, 06:23 AM
Last activity: Mar 22, 2024, 06:23 AM