Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • I'm confused, my top doesn't have a -stats option. And it displays priority and niceness by default. And ps should display all processes (if given the right arguments to select them) What system is this on? Commented Nov 27, 2012 at 15:59
  • well, macosx right now, but there is no difference between this and ubuntu at all... it does display them, but i need only them and something else, not all possible stats. Commented Nov 27, 2012 at 16:03
  • Nothing wrong with questions about Mac OS X's Unix part here, AFAIK. Definitely different than Ubuntu though, as on Ubuntu top -stats gives an error about an unknown option. Commented Nov 27, 2012 at 16:07
  • Yes, sorry, this option exists only on osx... nothing about this on archlinux. Weird. So how can I manage fields that I want to display in top command on proper linux systems? Commented Nov 27, 2012 at 16:12
  • 1
    With Linux top, the only way I know is by writing a ~/.toprc file (easily done by configuring it interactively how you'd like, then hitting W). I don't think top is really intended to be used by scripts. Commented Nov 27, 2012 at 16:19