Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

No sort by memory in top command?

104 views
Skip to first unread message

Ant

unread,
Oct 2, 2015, 2:30:44 PM10/2/15
to
Hello.

Is it me or does Mac OS X's Terminal's top command not have a sort by
memory like in Linux? I cannot find anything about it with parameters,
keys, etc. online and in its man guide. I know, I can use Activity
Monitor GUI, but I'm old school and use Terminal a lot. FYI, I have
not installed MacPort/HomeBrew/Fink yet due to other issues. ;)

Thank you in advance. :)
--
Quote of the Week: Allah's Apostle said, "Once while a prophet amongst
the prophets was taking a rest underneath a tree, an ant bit him. He,
therefore, ordered that his luggage be taken away from underneath that
tree and then ordered that the dwelling place of the ants should be set
on fire. Allah sent him a revelation: 'Wouldn't it have been sufficient
to burn a single ant (that bit you)?'" --Translation of Sahih Bukhari,
Book 54, Number 536
Note: A fixed width font (Courier, Monospace, etc.) is required to see this signature correctly.
/\___/\ Ant(Dude) @ http://antfarm.home.dhs.org (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / Please nuke ANT if replying by e-mail privately. If credit-
( ) ing, then please kindly use Ant nickname and AQFL URL/link.

Jolly Roger

unread,
Oct 2, 2015, 2:38:09 PM10/2/15
to
On 2015-10-02, Ant <ANT...@zimage.com> wrote:
> Hello.
>
> Is it me or does Mac OS X's Terminal's top command not have a sort by
> memory like in Linux? I cannot find anything about it with parameters,
> keys, etc. online and in its man guide. I know, I can use Activity
> Monitor GUI, but I'm old school and use Terminal a lot. FYI, I have
> not installed MacPort/HomeBrew/Fink yet due to other issues. ;)
>
> Thank you in advance. :)

It's right there in the man page:

-o <key>
Order the process display by sorting on <key> in descending order. A +
or - can be prefixed to the key name to specify ascending or descending
order, respectively. The supported keys are:
.
.
.
mem Internal memory size.
rprvt Resident private address space size.
purg Purgeable memory size.
vsize Total memory size.
vprvt Private address space size.
kprvt Private kernel memory size.
kshrd Shared kernel memory size.

--
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

Ant

unread,
Oct 2, 2015, 3:08:14 PM10/2/15
to
> > Is it me or does Mac OS X's Terminal's top command not have a sort by
> > memory like in Linux? I cannot find anything about it with parameters,
> > keys, etc. online and in its man guide. I know, I can use Activity
> > Monitor GUI, but I'm old school and use Terminal a lot. FYI, I have
> > not installed MacPort/HomeBrew/Fink yet due to other issues. ;)
> >
> > Thank you in advance. :)

> It's right there in the man page:

> -o <key>
> Order the process display by sorting on <key> in descending order. A +
> or - can be prefixed to the key name to specify ascending or descending
> order, respectively. The supported keys are:
> .
> .
> .
> mem Internal memory size.
> rprvt Resident private address space size.
> purg Purgeable memory size.
> vsize Total memory size.
> vprvt Private address space size.
> kprvt Private kernel memory size.
> kshrd Shared kernel memory size.

Ah thanks, I missed "mem" part in man guide. I was looking at "?" help
and online.
0 new messages