Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-12-2007, 03:07 PM   #1
LQ Newbie
Registered: Dec 2006
Posts: 27

Rep: Reputation: 15
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.

Old 01-12-2007, 03:17 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
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
Old 01-12-2007, 03:50 PM   #3
LQ Newbie
Registered: Dec 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Excellent, thanks. Worked good.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to recover file if it's deleted accidentally? Linux - Distributions 4 12-25-2006 09:13 PM
Accidentally deleted file... emalbum Linux - Kernel 1 09-03-2006 11:14 AM
Accidentally deleted GRUB oryhara Linux - General 3 06-09-2006 06:23 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 08:55 PM
accidentally deleted /etc/profile tanbetien Fedora 2 11-21-2003 10:42 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration