LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   deleted file by accident in fedora (https://www.linuxquestions.org/questions/linux-newbie-8/deleted-file-by-accident-in-fedora-798037/)

hillaryma 03-26-2010 07:41 AM

deleted file by accident in fedora
 
i was working on a file and accidentally deleted it on , is it possible to recover it?

cola 03-26-2010 07:43 AM

Quote:

Originally Posted by hillaryma (Post 3913186)
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 ?

linux_ 03-26-2010 07:54 AM

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

vinaytp 03-26-2010 08:22 AM

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.

jkzfixme 03-26-2010 09:44 AM

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

I have used this method with varying success

hillaryma 04-01-2010 04:27 AM

i got it thanks

unSpawn 04-01-2010 05:47 AM

Quote:

Originally Posted by linux_ (Post 3913209)
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_ (Post 3913209)

That is an old procedure and only handles text snippets.


Quote:

Originally Posted by jkzfixme (Post 3913326)
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 (Post 3913238)
You may need to have look at recovery softwares like photorec,testdisk,RIP.

That is the best advice.


All times are GMT -5. The time now is 07:37 AM.