No subject


Fri Jan 31 06:23:24 EST 2014


>From suter  Fri Dec  7 10:37:44 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 fB70bhNT002894
	for <suter at zwitterion.humbug.org.au>; Fri, 7 Dec 2001 10:37:44 +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 fB70bhvm000838
	for <suter at zwitterion.humbug.org.au>; Fri, 7 Dec 2001 10:37:43 +1000
Received: from majordom by caliburn with local (Exim 3.12 #1 (Debian))
	id 16C8UF-0005YK-00
	for <general-outgoing at lists.humbug.org.au>; Fri, 07 Dec 2001 10:03:31 +1000
Received: from d-243-28.stlucia.uq.net.au ([203.101.243.28] helo=freezer.home)
	by caliburn with esmtp (Exim 3.12 #1 (Debian))
	id 16C8U9-0005YA-00
	for <general at lists.humbug.org.au>; Fri, 07 Dec 2001 10:03:25 +1000
Received: from henry by freezer.home with local (Exim 3.32 #1)
	id 16C8U7-0000pc-00
	for general at lists.humbug.org.au; Fri, 07 Dec 2001 10:03:23 +1000
Date: Fri, 7 Dec 2001 10:03:23 +1000
From: Jason Henry Parker <jasonp at uq.net.au>
To: general at lists.humbug.org.au
Subject: [H-GEN] Re: [H-CHAT] top ten *nix utilities?
Message-ID: <20011207100323.A3154 at freezer.home>
Mail-Followup-To: Jason Henry Parker <henry at freezer.home>,
	general at lists.humbug.org.au
References: <Pine.LNX.3.96.1011206222018.441B-100000 at avon.timetraveller.org> <01120710233700.03069 at localhost.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <01120710233700.03069 at localhost.localdomain>; from bmatthewtaylor at yahoo.co.uk on Fri, Dec 07, 2001 at 10:23:37AM +1000
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: 2227
Lines: 62

[ 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 ]

On Fri, Dec 07, 2001 at 10:23:37AM +1000, Matthew Taylor wrote:
> was just wondering, what would be the top ten (favourite) command line 
> utilities? (excluding basic commands cd, mv, cp, ls etc...)

[Moved to general@ because I think this'll be fun.]

Oh, easy:

$ perl -lane'if($F[0]eq q/sudo/){shift at F};$h{$F[0]}++}{map{printf"%3d\t%s\n",$h{$_},$_}sort{$h{$b}<=>$h{$a}}keys%h' .bash_history
[...]
 55     perl
 21     vi
 21     rm
 15     cd	(*)
 13     less
 12     xlock	(!)
 10     diff
  9     cat
  9     chmod
  9     wordnet	(^)
  8     ssh
  7     apt-get
  7     perldoc
  6     touch

cd isn't relevant, xlock isn't a command-line application, and
wordnet isn't typical usage.  Neither is perl in this case, but it
*is* my favourite.

So we're left with vi, rm, less, diff, cat, chmod, ssh, apt-get,
perldoc and touch.

Others that didn't make it in:  netcat (absolutely *essential*
sometimes), screen (I've never seen a good Unix sysad who didn't use
it), cvs and rcs, gpg, emacs (does that count as command-line?  I
think vi does), oh, and patch.  fmt is great, par is better.  Sleep
is useful for stuff like this:

	$ sleep $[ 4 * 60 ] && echo ^G # boil an egg

Sudo rocks, as do dump and restore, and rsync.

Hmm, I think those are my favourites.  Combinations work well:  the
most egregious example I can think of is using diff to create a
patch which I hacked into a perl script to apply over and over to
different files, found with find.

jason, of course, perl can imitate maybe half of those utilities
-- 
||----|---|------------|--|-------|------|-----------|-#---|-|--|------||
| The Proud Tower, Barbara Tuchman            http://linux.org.au/conf/ |
| A History of Mathematics, Carl B. Boyer              jasonp at uq.net.au |
||--|--------|--------------|----|-------------|------|---------|-----|-|

--
* 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