problem with ifconfig and vi file
Hi
i know that if we want to know about ip address of pc in linux OS we must type ifconfig, right? But i cant type it in my PC. I dont know why. help me pls i type as this but nothing happen it display a error :command not found [root@user ~]#ifconfig another question is: what must i do to save a vi file as # vi smb.config i have change something inside but dont know how to save it:confused: :confused: thank a lot |
1. make sure your "ifconfig" is in your /sbin.
2. to save file on vi, after finish typing, press "esc" then ":wq" follow by enter. |
Quote:
i have success with vi file but with ifconfig is not yet might be ur meant was [root@user ~]#cd sbin [root@user sbin]#ifconfig Right? But it still is command not found thanks |
Quote:
you can by the tilde ~ normally this is /root so a cd sbin will not get you to /sbin but rather to /root/sbin if it exists. otherwise will result in an error. cd /sbin will get you to where you want to go. then typing ./ifconfig rather than ifconfig will execute the ifconfig file in /sbin you could also just type /sbin/ifconfig that would also execute ifconfig in /sbin if that works root's $PATH is incorrect to check type echo $PATH |
@Nathanael :Thanks so much
I have success with /sbin/ifconfig command but fail wih ./ifconfig I am using fedora 6.0 Thanks again |
try
echo $PATH what do you get? |
All times are GMT -5. The time now is 05:07 PM. |