From: syl@alcor.concordia.ca (Sylvain Robitaille)
Subject: Re: Sysadmin favorite commands list
Date: 16 Jul 2002 19:03:28 GMT [thread overview]
Message-ID: <ah1qm0$mqm$1@newsflash.concordia.ca> (raw)
In-Reply-To: uisim48f9rqc27@corp.supernews.com
I wrote:
>> With any Unix (or "Unix-like") system, there's really only one command
>> you need to know how to use: man. Everything else you can look up.
On Thu, 11 Jul 2002 22:19:30 -0500, Dave Uhring responded:
> That is really not very helpful at all.
I'm sorry you feel that way, but I stand by my statement.
> I am just beginning to get used to Tru64 Unix and I have found it to
> be quite different from other Unices and BSDs, not to mention Linux.
Indeed it is, but then again, not all Linux distributions are the same
either, let alone BSD vs Solaris or what have you. What you'll find,
though, is that the basic components are indeed the same.
> Solaris, for instance, has a totally different setup for network
> configuration. Tru64's is more similar to FreeBSD.
Well, I suppose it does *look* different, but ifconfig is ifconfig is
ifconfig...
> How do you expect a new user to figure out where the machine's IP
> address is to be set without knowing the name of the file where it
> is set? rcmgr(8) just does not exist in any BSD, Solaris or Linux.
To tell the truth, I don't expect a "new user" to even want that
information, and I do expect a sys-admin, regardless of experience with
the specific OS to at least be able to take steps towards looking it up.
That specific question is answered in the OS installation documentation.
I wouldn't define a "good" sys-admin as someone who has memorized a
handful of commands for a particular OS, but rather as someone who has
demonstrated an ability to find information (among a number of other
attributes, of course).
My boss did write a program some years ago, called "fsr" (find string
recursively), which behaves pretty much like a recursive "grep -l" (this
was written before GNU grep). I use that quite extensively.
If I wanted to find out in which startup script ifconfig was called, for
instance, I might call "fsr /sbin/init.d ifconfig".
So alright, to that end, some of my favorites include (it might be worth
looking for newer versions than I have):
fsr: Locally written recursive grep
top: ftp://ftp.groupsys.com/pub/top/top-3.5beta9.tar.gz
lsof: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof_4.40_W.tar.gz
perl: ftp://ftp.perl.org
pt: ftp://convex.com/pub/perl/scripts/pt.shar.Z
vim: ftp://ftp.vim.org/pub/editors/vim/unix/vim-5.7-src.tar.gz
tcsh: ftp://tesla.ee.cornell.edu/pub/tcsh/tcsh-6.06.tar.gz
Others have already mentioned top and lsof; perl is pretty much
ubiquitous these days; pt is a perl script which prints a process tree.
Very handy for finding parent processes in one easy step; vim is about
the best text editor out there; tcsh is just a very good shell for
interactive use.
Other favorites (in no particular order) include Gnu's diff and patch
(unified context diffs are easiest to read), Ssh, Tripwire, awk,
Tcp_Wrappers, trace, procmail, and a number of locally written programs
and scripts...
Sample pt output:
: alcor[syl] ~/tmp; pt $$
USER PID TTY TIME COMMAND
root 0 ?? 23:49:12 [kernel idle]
root 1 ?? 13:22.62 /sbin/init -a
root 724 ?? 7:53.48 /local/bin/sshd
root 32607 ?? 0:00.46 /local/bin/sshd
syl 31497 ttyw0 0:00.34 -tcsh (tcsh)
syl 9365 ttyw0 0:00.04 perl -wT /local/bin/pt 31497
root 4144 ttyw0 0:00.04 /usr/bin/ps axlww
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
: alcor[syl] ~; man -k configur
(output trimmed for clarity...)
...
ifconfig (8) - Configures or displays network interface parameters
inetd.conf (4) - The default configuration file for the inetd daemon
...
netconfig (8X) - Manages network configuration processes
...
rcmgr, rc.config (8) - Gets and sets run-time configuration variables stored in the files /etc/rc.config and /etc/rc.config.site
...
resolv.conf (4) - Resolver configuration file
...
sysconfig (8) - Maintains the kernel subsystem configuration
...
sysconfigtab (4) - Configurable subsystem definition database file
...
(you probably get the idea...)
next prev parent reply other threads:[~2002-07-16 19:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-11 9:59 Sysadmin favorite commands list Martin Brodie
2002-07-11 17:28 ` Sylvain Robitaille
2002-07-12 3:19 ` Dave Uhring
2002-07-12 4:55 ` Adam Price
2002-07-12 10:30 ` Dave Uhring
2002-07-12 17:12 ` Heather Wesley
2002-07-12 18:14 ` Adam Price
2002-07-12 22:41 ` Dave Uhring
2002-07-13 13:07 ` Michael Heiming
2002-07-14 0:43 ` Dave Uhring
2002-07-14 8:41 ` Michael Heiming
2002-07-12 15:33 ` Dan Riley
2002-07-12 21:09 ` Peter da Silva
2002-07-16 19:03 ` Sylvain Robitaille [this message]
2002-07-12 2:22 ` Quarter Horseman
2002-07-12 11:44 ` Jonas Furrer
2002-07-16 2:32 ` Jack Patteeuw
2002-07-16 2:38 ` Jack Patteeuw
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox