home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!csus.edu!netcom.com!netcomsv!mbeckman!mbeckman
- From: mbeckman@mbeckman.mbeckman.com (Mel Beckman)
- Newsgroups: comp.unix.aix
- Subject: Re: top command on aix?
- Date: Tue, 26 Jan 93 16:35:19 PST
- Organization: Beckman Software Engineering
- Message-ID: <01050810.om6677@mbeckman.mbeckman.com>
- Reply-To: mbeckman@mbeckman.com
- Distribution: world
- X-Mailer: uAccess LITE - Macintosh Release: 1.5v5
- Lines: 30
-
-
- In article <1993Jan26.141611.19688@jarvis.csri.toronto.edu> (comp.unix.aix), jwang@sys.toronto.edu (Jingwen Wang) writes:
- >
- > Is there a command similar to "top" on aix? This command is useful to
- > find out which processes are consuming most of the cpu time.
-
-
- You can make an alias for the Korn shell to do this:
-
- alias top = '(ps u | head -1; ps aux | grep -v PID | sort +2r)'
-
- Put this statement in your .profile (I think it will work there) or put
- it in a file and run it using the dot-space operation:
-
- . topalias (where topalias is the file containing the above alias stmt)
-
- (Note the space after the dot! This is telling the shell to run the command
- in the current environment instead of creating a subshell, in which case
- you'd lose the alias upon return).
-
- -mel
-
- _____________________________________________________________________
- | Mel beckman | Internet: mbeckman@mbeckman.com |
- | Beckman Software Engineering | Compuserve: 75226,2257 |
- | 1201 Nilgai Place | Voice: 805/647-1641 |
- | Ventura, CA 93003 | Fax: 805/647-3125 |
- |______________________________|____________________________________|
- "Internet is big. Really Big. It gives the idea of
- infinity much better than infinity itself."
- (with apologies to Douglas Adams)
-