LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-26-2010, 08:41 AM   #1
hillaryma
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Question deleted file by accident in fedora


i was working on a file and accidentally deleted it on , is it possible to recover it?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-26-2010, 08:43 AM   #2
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by hillaryma View Post
i was working on a file and accidentally deleted it on , is it possible to recover it?
How did you delete it?
rm -f or shift+delete ?
 
Old 03-26-2010, 08:54 AM   #3
linux_
LQ Newbie
 
Registered: Mar 2010
Location: Pune, India
Distribution: Fedora, CentOS, Ubuntu
Posts: 24

Rep: Reputation: 1
Hi,
Even I faced similar problem one day.
I deleted few files with "rm" command.
But Linux is very clever. It maintains backup files.
Just open terminal and go to the directory/folder where you kept the file/s using "cd" command.
Now list the content of that folder using "ls".
You will see the backup files as "xyz.txt~"
Open it and save.

Or if you cannot find any, try the procedure given here:
http://www.cyberciti.biz/tips/linuxu...ted-files.html
 
Old 03-26-2010, 09:22 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
If you have deleted with

Code:
rm -r -f
And backup file is not available. You may need to have look at recovery softwares like photorec,testdisk,RIP.
 
2 members found this post helpful.
Old 03-26-2010, 10:44 AM   #5
jkzfixme
Member
 
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Blog Entries: 21

Rep: Reputation: 52
http://www.ehow.com/how_2064953_reco...les-linux.html

I have used this method with varying success
 
1 members found this post helpful.
Old 04-01-2010, 05:27 AM   #6
hillaryma
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
i got it thanks
 
Old 04-01-2010, 06:47 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Quote:
Originally Posted by linux_ View Post
I deleted few files with "rm" command. But Linux is very clever. It maintains backup files.
It's not "clever" or a default. Backups only get made in a few cases.


Quote:
Originally Posted by linux_ View Post
That is an old procedure and only handles text snippets.


Quote:
Originally Posted by jkzfixme View Post
http://www.ehow.com/how_2064953_reco...les-linux.html I have used this method with varying success
That used to work on ext2 file-systems. Journalling filesystems are a different thing.


Quote:
Originally Posted by vinaytp View Post
You may need to have look at recovery softwares like photorec,testdisk,RIP.
That is the best advice.
 
  


Reply


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
Deleted ~/.mozilla by accident SentralOrigin Linux - Software 2 08-04-2007 04:47 PM
Just deleted /usr/lib/pkgconfig by accident. Hunter2 Slackware 3 06-25-2006 08:15 PM
deleted video group by accident ncsuapex Slackware 5 04-15-2006 09:18 AM
Deleted ls by accident cake81 Linux - Newbie 4 01-19-2006 05:01 AM
deleted cdrom by accident chronos Linux - General 1 12-16-2000 07:36 PM


All times are GMT -5. The time now is 06:29 AM.

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