No subject


Fri Jan 31 06:23:24 EST 2014


>From suter  Fri Dec  7 13:00:08 2001
Return-Path: <majordom at caliburn.humbug.org.au>
Received: from diadora.client.uq.net.au (diadora-2 [10.0.1.2])
	by zwitterion.humbug.org.au (8.12.1/8.12.1/Debian -2) with ESMTP id fB7308NT019458
	for <suter at zwitterion.humbug.org.au>; Fri, 7 Dec 2001 13:00:08 +1000
Received: from caliburn (mail at caliburn.humbug.org.au [203.15.51.6])
	by diadora.client.uq.net.au (8.12.1/8.12.1/Debian -2) with ESMTP id fB7308vm005896
	for <suter at zwitterion.humbug.org.au>; Fri, 7 Dec 2001 13:00:08 +1000
Received: from majordom by caliburn with local (Exim 3.12 #1 (Debian))
	id 16CAfa-0006zs-00
	for <general-outgoing at lists.humbug.org.au>; Fri, 07 Dec 2001 12:23:22 +1000
Received: from gw.gbch.net ([203.143.238.93] ident=8doa7v)
	by caliburn with smtp (Exim 3.12 #1 (Debian))
	id 16CAfV-0006zf-00
	for <general at lists.humbug.org.au>; Fri, 07 Dec 2001 12:23:18 +1000
Received: (qmail 28876 invoked by uid 1001); 7 Dec 2001 12:23:16 +1000
X-Posted-By: GJB-Post 2.23 27-Nov-2001
X-Operating-System: FreeBSD 4.2-RELEASE i386
X-Uptime: 2 days, 20:31
X-Location: Brisbane, Australia; 27.49841S 152.98439E
X-URL: http://www.gbch.net/gjb.html
X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif
X-GPG-Fingerprint: EBB2 2A92 A79D 1533 AC00  3C46 5D83 B6FB 4B04 B7D6
X-PGP-Public-Keys: http://www.gbch.net/keys.html
Message-Id: <nospam-1007691795.28837 at bambi.gbch.net>
Date: Fri, 07 Dec 2001 12:23:15 +1000
From: Greg Black <gjb at gbch.net>
To: general at lists.humbug.org.au
Subject: Re: [H-GEN] Re: [H-CHAT] top ten *nix utilities? 
References: <Pine.LNX.4.32.0112071129510.4937-100000 at homebrew.universal.net.au> 
In-reply-to: <Pine.LNX.4.32.0112071129510.4937-100000 at homebrew.universal.net.au> 
	of Fri, 07 Dec 2001 11:32:10 +1000
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Precedence: bulk
Reply-To: general at lists.humbug.org.au
X-Loop: general at lists.humbug.org.au
List-Help: <mailto:majordomo at lists.humbug.org.au?subject=help>
List-Post: <mailto:general at lists.humbug.org.au>
List-Subscribe: <mailto: general-request at lists.humbug.org.au?subject=subscribe>
List-Id: semi-serious discussions about Humbug and Unix-related topics <general at lists.humbug.org.au>
List-Unsubscribe: <mailto: general-request at lists.humbug.org.au?subject=unsubscribe>
List-Archive: <http://archive.humbug.org.au/humbug-general/>
Sender: Majordomo <majordom at caliburn.humbug.org.au>
Status: RO
Content-Length: 1714
Lines: 51

[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

Nikolai Lusan wrote:

| On Fri, 7 Dec 2001, Sandra Milne wrote:
| 
| > after using the perl command, here's my official top ten :-)
| It's pretty hard for me to tell what I am using from just the
| .bash_history, I have so many shells open (screen I love you) that'd
| have to kill in order to get an accurate view of what should be in that
| file - it's also not all on one machine or a s one user.

Real Unix people don't have history files anyway :-)

This is why god invented system accounting, in this case via the
lastcomm(1) command:

$ lastcomm gjb | awk '{print $1}' | sort | uniq -c | sort -nr | 
> grep -v mail | tail +9 | head
  91 sed
  61 awk
  55 ps
  50 grep
  49 head
  32 hostname
  28 id
  27 sort
  21 [
  19 cat

The grep and tail were just to get rid of the hundreds of
entries generated by my procmail recipes (since this is on my
mail reading/sending box).  What's left there is a reflection of
the last 9 hours since the accounting files were rotated.

Normally, there would be plenty of gcc-related items and maybe a
few python invocations -- but I have been playing with my new
laptop the last couple of days rather than doing actual work...

This one is also interesting as it gives a hint of how much goes
on over a 24-hour period:

$ lastcomm -f /var/account/acct.0 | wc -l
   73905

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list