ifconfig : Command 'ifconfig' is available in '/sbin/ifconfig'

Posted by Sahil Grover on Ask Ubuntu See other posts from Ask Ubuntu or by Sahil Grover
Published on 2012-04-10T07:01:07Z Indexed on 2012/04/10 11:42 UTC
Read the original article Hit count: 415

Filed under:
|
|

My question is related to another open question. My echo $PATH gives me an output which is like

/home/sahil/.rvm/gems/ruby-1.9.3-p125/bin:/home/sahil/.rvm/gems/ruby-1.9.3-p125@global/bin:/home/sahil/.rvm/rubies/ruby-1.9.3-p125/bin:/home/sahil/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/home/sahil/.rvm/bin{}:/home/android-sdks/{}:/home/android-sdks/platform-tools/{}:/home/android-sdks/tools/{}:/home/sahil/android-sdks/tools{}:/home/sahil/android-sdks/tools:/home/sahil/android-sdks/platform-tools/

But running

ifconfig 

gives me an output like

Command 'ifconfig' is available in '/sbin/ifconfig'
The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
ifconfig: command not found

after running command like given in other question

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

it runs ifconfig but blocks other commands of ruby rails or rvm.

Seeking help how to resolve this. Also why this happens?

© Ask Ubuntu or respective owner

Related posts about command

Related posts about paths