LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   accidentally deleted my ifcfg-eth2 file (https://www.linuxquestions.org/questions/linux-newbie-8/accidentally-deleted-my-ifcfg-eth2-file-518731/)

JRink 01-12-2007 02:07 PM

accidentally deleted my ifcfg-eth2 file
 
tfcfg-eth2 is gone... I deleted it accidentally, well, not accidentally... on purpose. i did accidentally make some wrong changes in it while in VI and i didn't know how to restore back to the original file so i RM'd it. How do I get this file back now? it had the MAC address of the NIC and I no longer know what that is otherwise I'd just recreate the file by copying the contests from ifcfg-eth1 and editting the contents.

I'm running CentOS 4.4 in shell mode only trying to learn this stuff.

JR

pixellany 01-12-2007 02:17 PM

If you are working in the CLI, there is no trash, undo, etc. many editors make backups by default. Check to be sure don't have <filename>~ somewhere. Also, distros often have templates somewhere

ifconfig -a will give you the MAC address for the card

JRink 01-12-2007 02:50 PM

Excellent, thanks. Worked good.


All times are GMT -5. The time now is 03:48 AM.