LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Undelete files? (https://www.linuxquestions.org/questions/linux-newbie-8/undelete-files-181834/)

deWin 05-15-2004 03:44 PM

Undelete files?
 
Well I was just cleaning up the system of unused files to save up some space and deleted something that i was not supposed to. I'm on RH9, I'm connected via SSH to shell. I used the command "rm myfolder -r"

How can I undelete or retrieve/restore the files and the folder?

agoatley 05-15-2004 03:49 PM

Undelete
 
So far as I know, there is no 'undelete' program in GNU/Linux. The problem is, once a file has been deleted, other files are likely to have been written to the physical space on the hard drive that the file once occupied. Undelete programs are filesystem-specific and whether or not you get the file back intact is up to chance.

-Ashton

deWin 05-15-2004 03:50 PM

oh boy
I'll see if any of the automatic backups have those files.

Tinkster 05-15-2004 03:51 PM

Have a look at
http://freshmeat.net/search/?q=undel...&Go.x=0&Go.y=0

Only valid for ext2/ext3 file-system, though.



Cheers,
Tink

deWin 05-15-2004 05:01 PM

I think i have a backup, it's old but it may have those files. it's a tar.gz file, how do I view the file without extracting it? It's a huge file, takes very long time.

johu 06-10-2004 11:11 AM

Quote:

Originally posted by deWin
I think i have a backup, it's old but it may have those files. it's a tar.gz file, how do I view the file without extracting it? It's a huge file, takes very long time.
U can find how to use "tar" via "man tar"

But I'll help u now, use the command:
tar -tzf filename.tar.gz

to view the filenames. Or use:
tar -tvzf filename.tar.gz

to view the filenames with "permissions, user/group, size, date, time "information also listed.


All times are GMT -5. The time now is 07:28 PM.