Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Mar 2004 23:04:05 -0600
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        Peter Jeremy <peterjeremy@optushome.com.au>
Cc:        arch@freebsd.org
Subject:   Re: Adding `pgrep' and `pkill' to /usr/bin
Message-ID:  <20040326050404.GA1879@over-yonder.net>
In-Reply-To: <20040325084837.GA57169@server.vk2pj.dyndns.org>
References:  <p0602046cbc87c722e8bc@[128.113.24.47]> <Pine.BSF.4.21.0403241550160.63489-100000@InterJet.elischer.org> <20040325065314.GA64827@regency.nsu.ru> <20040325084837.GA57169@server.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 25, 2004 at 07:48:37PM +1100 I heard the voice of
Peter Jeremy, and lo! it spake thus:
> 
> At another level, Unices tend to differ most when it comes to
> administration utilities.  This requires sysadmins to mentally change
> gears as they move between xterm (should I type "ps -ef" or "ps -ax"
> into this terminal?).  Adding (useful) sysadmin utilities from one of
> the more common Unices would seem to be A Good Thing.

That's why you have your shell rc file set up aliases.  A few snips
from mine:

-----
case "FREEBSD":
case "UNKNOWN":
    alias p     'ps -agOuser'
    alias psa   'ps -gaxuww \!* | $PAGER'
    breaksw
case "SOLARIS":
    alias p     '/usr/ucb/ps -agu'
    alias psa   '/usr/ucb/ps -gaxuww \!* | $PAGER'
    breaksw
case "LINUX"
    alias p     'ps ua'
    alias psa   'ps axuww \!* | $PAGER'
    breaksw
-----

And so on.

True, not perhaps as nice as them actually being the same, but what
fun would THAT be?   :)


-- 
Matthew Fuller     (MF4839)   |  fullermd@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040326050404.GA1879>