Adding `pgrep' and `pkill' to /usr/bin
Matthew D. Fuller
fullermd at over-yonder.net
Thu Mar 25 21:04:09 PST 2004
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 at 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"
More information about the freebsd-arch
mailing list