LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ifcfg-eth0 and link problem (https://www.linuxquestions.org/questions/linux-newbie-8/ifcfg-eth0-and-link-problem-556682/)

shipon_97 05-25-2007 01:54 PM

ifcfg-eth0 and link problem
 
Dear Friends ,

Plz tell me what is the difference between the following locations :

"/etc/sysconfig/network-scripts/ifcfg-eth0"
AND

"/etc/sysconfig/networking/devices/ifcfg-eth0"

when I am running 'service network restart' , then is the above two files are effected ?


My 2nd ques is : how I remove a linking file , for example :
ln -s /etc/test /etc/test.conf
using rm , i cant delete it .

Waiting for ur reply ... ..

MensaWater 05-26-2007 07:28 AM

The one in network-scripts is the one that is used when you start networking. Not sure what the other one is but I've never had to modify that one - it may be put there when you start networking as a copy of the one from network-scripts.

ln -s /etc/test /etc/test.conf
creates the symbolic link /etc/test.conf from the original file /etc/test.

rm /etc/test.conf
should remove the symbolic link. Removing the link does NOT remove the original file. You have to remove the original file by typing:
rm /etc/test

Of course the user you're logged in as has to have permission to remove the file. Logging in as root to remove the link should work if nothing else does.


All times are GMT -5. The time now is 08:58 PM.