6

I know that I can change the niceness using this command:

renice [-n] priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]

But it would be much more convenient if I could do it while scanning the processes in top.

Computer Lover
  • 155
  • 1
  • 1
  • 7

2 Answers2

4

Press r. That's it! :-)

Reference: The 9th item in 12 TOP Command Examples in Linux

Positive Navid
  • 895
  • 3
  • 12
  • 19
4

htop gives you a user interface, that is easier to use. F7 and F8 are used to renice the high-lighted process. You need sudo permissions to decrease the nice value.

sudo add-apt-repository universe  # only for standard Ubuntu
sudo apt update
sudo apt install htop

htop

Or if you want to decrease the nice value (can be dangerous)

sudo -H htop
sudodus
  • 45,126
  • 5
  • 87
  • 151