Are there any tools that improve the readability of ps
in the same spirit as ack for grep
?
This would be especially on OS X where ps
does not even have options such as --sort user
.
So far the nicest formatting I could come up with is
alias p="ps -m -o pid,user,%mem,args"
and pa="p -a"
px="p -x"
, but I would like to, for example:
- format the memory footprint better (e.g. KB, MB, ...)
- sort by user name or filter with
p <user>
- only show {fore,back}ground processes with
p {fg,bg}
- draw the
pstree
hierarchy without being overwhelmed - color the output meaningfully
ack
— too bad, thanks for the links. – Paolo Jul 24 '11 at 13:47htop
but I see Gilles included it. How is that NOT what you are looking for? – Caleb Jul 24 '11 at 14:39.htoprc
, I suppose). It satisfies all of Paolo's numbered requirements, but not the premise of being a command-line, batch application. It's one of the several partial solutions in my answer; I don't have anything to propose that meets all the requirements. – Gilles 'SO- stop being evil' Jul 24 '11 at 15:10