10

Used to be able to view the UNIX nice value of a process in the top CLI utility. I think it's gone from the top utility on Mavericks? Any other ways to view it?

11

Use ps with a lower case L to directly view current nice values:

ps -l

or for specific process id (PID)

ps -l -p __PID___
1
  • 1
    Unfortunately, the display is bungled so you can't (mostly) grep for the command name. If you first do ps aux | grep -i theCommandName and then use the pid (first number after user name) in ps -l -p pid you won't have to do some fancy pid-filtering. – Erk May 4 '19 at 16:57
1

I am using htop command.htop image

It's very nice.

2
  • htop is very nice indeed. – bmike Mar 2 '18 at 21:33
  • brew install htop – Nathan Jones Nov 7 '19 at 3:21
0

Install GNU Coreutils via Homebrew, then use gnice. It only works for getting the current process' nice level though, AFAIk.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .