 |
 |
top command
|
 |
|
 |
|
Junior Member
Join Date: Nov 2002
Location: Sweden
Status:
Offline
|
|
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
|
|
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
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
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"
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |