command problem

Home » CentOS » command problem
CentOS 2 Comments

Hi all,
I am having problems with commands via Terminal after the upgrade to centos to release 5.8 How come I did not recognized the ifconfig, route?

below is an excerpt:

# ifconfig
bash: ifconfig: command not found

# route
bash: route: command not found

the kernel version:

# uname -a
Linux localhost.localdomain 2.6.18-308.1.1.el5 #1 SMP Wed Mar 7 04:17:30
EST 2012 i686 i686 i386 GNU/Linux

before the update I had the release 5.5 and I had no problem can someone help me?

2 thoughts on - command problem

  • It looks like /sbin and /usr/sbin aren’t in your path any more. You
    could try either running
    export PATH=”$PATH:/sbin/:/usr/sbin”
    or, add the same line to your ~/.bashrc if you want it to stick.
    I would guess that you have edited one of the system-wide environment
    config files at some point in the past, and an RPM update has reverted
    the change somehow.