[Novices] command not found

Adam Tauno Williams adam at morrison-ind.com
Fri Mar 10 09:47:54 EST 2006


> > >> No, USE the command to become root.
> > >Got it. 
> > >(Interesting, these distro quirks. With Mandrake, I just use su to get
> > >there.)

Which is incorrect behaviour.  This is ancient UNIX stuff.

> > It may well be that the Mandrake distribution folks chose to set the
> > PATH varialbe differently taht other, or they put ifconfig in a different
> > directory.
> Every distro where I've used it puts ifconfig in /sbin, and does NOT
> include that path in the default user profile. 

Correct.

> Try /sbin/ifconfig, and see if that works.

There a lot of history in all this;  on many UNIXs a normal user can't
use "ifconfig" or whatever the equivalent is.  It works for read/display
by a normal user on LINUX because it (in this use case) it is really
just reading some text files from /proc and dropping the output in a
template and out to standard-out (the screen).  The 'proper' way for a
normal user to access networking configuration information or statistics
is to use the "netstat" (old school) and "ip" (new school?) commands.

"netstat -i" displays per interface counters.

"ip address" will display all the interfaces and their current
configuration.

"ip route" will display the routing table, as will "netstat -r"

Both netstat and ip should be in your normal path.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/novices/attachments/20060310/3c4260b6/attachment.bin


More information about the Novices mailing list