View Full Version : ifconfig in FC5
cvcc12000
2006-03-27, 03:30 PM CST
just installed FC5 coming from SUSE10.In terminal cant find the ifconfig command.always get message saying command not found.I've logged in as root and still no luck.what directory is this command in?with SUSE I can run command from terminal in home directory.
axelseap
2006-03-27, 03:33 PM CST
u gotta load the root profile which contains the sbin dirs in it's path so either su - or /sbin/ifconfig
gotmonkey
2006-04-10, 03:01 PM CDT
u gotta load the root profile which contains the sbin dirs in it's path so either su - or /sbin/ifconfig
I am in the boat. Fresh install of FC5. Ran su to get into root, ran /sbin/ifconfig, same error, command not found
thoughts?
pparks1
2006-04-10, 05:28 PM CDT
you MISSED the DASH after the su.
Without the DASH, it does NOT load root's profile. And /sbin is not in a regular users profile.
When you put in the DASH, it loads root profile, which DOES include /sbin so typing commands like ifconfig will be found when the PATH is searched.
gotmonkey
2006-04-11, 04:59 AM CDT
you MISSED the DASH after the su.
Without the DASH, it does NOT load root's profile. And /sbin is not in a regular users profile.
When you put in the DASH, it loads root profile, which DOES include /sbin so typing commands like ifconfig will be found when the PATH is searched.
thanks, that worked
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.