Re: sbin and basic commands



Dan Espen wrote:
Moif Murphy <moif_MONSTERS_murphy@xxxxxxxxxxxxxxxxxxxxxxxx> writes:

Hello!

Whenever I try to execute a basic command such as ifconfig, Fedora
tells me that it can't find the command. I then try /sbin/ifconfig and
it works. Can anyone advise me on what I need to do to eliminate the
need to type /sbin/ when using such commands?

It's pretty common for ordinary users to not have /sbin in their
path.

You can add this to your .bash_profile to fix that:

export PATH=$PATH:/sbin

Thank you. Job done!
.



Relevant Pages

  • Re: [SLE] 10.0: no net, now what, contd
    ... > When you're in Linux open a console shell issue the command ... > the ifconfig command, and place it at the beginning of that line, left ... > hardware problem. ... >> YaST from the desktop, and how to add its icon there.) ...
    (SuSE)
  • Re: Desired behaviour of "ifconfig -alias"
    ... ifconfig bce0 -alias ... It turns out that this command eliminated the primary IP for the ... are running in automated scripts, ... an interface are equal, just like hardlinks on a file. ...
    (freebsd-stable)
  • Re: ifconfig command shows only loopback device.
    ... unix syzadmin wrote: ... command shows 2 entries for Intel Corporation 82544EIGigbit Ethernet ... However the "ifconfig" shows only loopback device. ...
    (RedHat)
  • Re: [SLE] Adding a secondary IP onto NIC
    ... > You appear to have found a bug in the ifup script of SuSE 9.1. ... I don't see any bug in ifup script. ... But, ifup uses ip command, not ifconfig, to configure interfaces. ...
    (SuSE)
  • Re: networking: fixed ip address and dhcp
    ... "route -n" command) ... ifconfig eth1 XXX.YYY.ZZZ.WWW netmask 255.255.255.0 ... This does not work now - I can't ping out. ...
    (Debian-User)