Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > top command

top command
Thread Tools
Junior Member
Join Date: Nov 2002
Location: Sweden
Status: Offline
Reply With Quote
Dec 4, 2004, 04:29 AM
 
Sorry for this rookie question, but how do I sort by process name when doing the top command.

Thanks
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Dec 4, 2004, 07:40 AM
 
top -o +command

Use the man command to explore the different options. In this case, -o orders the display according to the parameter that follows, command. The + before command sets the sorting order.

Craig
     
Junior Member
Join Date: Nov 2002
Location: Sweden
Status: Offline
Reply With Quote
Dec 4, 2004, 07:45 AM
 
Thanks!
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Dec 7, 2004, 08:22 PM
 
Originally posted by suthercd:
top -o +command

Use the man command to explore the different options. In this case, -o orders the display according to the parameter that follows, command. The + before command sets the sorting order.
Interesting, I always just used top -u to sort by "usage" which seems to do the same thing as "-o cpu". The -o mechanism has lots of neat options that I'm sure I'll have a use for some day, very cool.

Heh, go figure, I just saw this in top's man page:
-u Deprecated, equivalent to -ocpu -Otime.
Thanks for the info.
(Last edited by [APi]TheMan; Dec 7, 2004 at 08:27 PM. )
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:06 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2