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.

2 Answers 2

4

Press r. That's it! :-)

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

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
3
  • 2
    I knew about htop. Thanks for your answer though. Jan 7, 2017 at 20:30
  • 1
    I didn't know about htop! Thanks @sudodus! :-) Jan 7, 2017 at 21:16
  • 1
    You are welcome, both of you :-)
    – sudodus
    Jan 7, 2017 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.