bash: ifconfig: command not found
[zeb@localhost zeb]$ ifconfig
bash: ifconfig: command not found this is wat i get evrytym i use the ifconfig command. i understand i have to change my path. what is the reason for that and why how is that donee. |
The command ifconfig is available to root only. As a normal user you won't use this command for safety reasons, since it may alter or break the network configuration.
|
Re: bash: ifconfig: command not found
Try running
# sudo bash # which ifconfig # echo $PATH That will start bash with root privileges. The second command shows you where ifconfig is located. The third command shows you the setting of root's path. |
hi,
First do a updatedb and then slocate ifconfig. This will tell you where is the ifconfig executable in your machine. It is generally in /sbin dir. there is a .bash_profile file in your home dir. ( if you are root then it is /root or else as user1 your home dir is /home/user1.) open the file in editor and add the following :- PATH=$PATH:/sbin You should be through. nishith |
If your running one of the Ubuntu's just type sudo ifconfig give passwd and your set.
Else su to root then ifconfig |
On ubuntu, all users are allowed to use ifconfig whitout parameters. So I guess he is not on a ubuntu machine.
|
Just type /sbin/ifconfig
|
regards
it worked with /sbin/ifconfig |
All times are GMT -5. The time now is 11:21 PM. |