LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-15-2004, 04:44 PM   #1
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Rep: Reputation: 15
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?
 
Old 05-15-2004, 04:49 PM   #2
agoatley
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 16

Rep: Reputation: 0
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
 
Old 05-15-2004, 04:50 PM   #3
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
oh boy
I'll see if any of the automatic backups have those files.
 
Old 05-15-2004, 04:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 05-15-2004, 06:01 PM   #5
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
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.
 
Old 06-10-2004, 12:11 PM   #6
johu
LQ Newbie
 
Registered: Jun 2004
Posts: 1

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


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
Is Ext2 the only fs that one can undelete files? thegeekster Linux - General 5 06-05-2004 07:29 PM
undelete files on ext3 santner Linux - General 0 04-27-2004 09:06 AM
Undelete files from ReiserFS mneves Linux - General 1 04-23-2004 10:31 AM
SOS - Undelete files? dtournas Linux - General 3 10-01-2003 09:40 PM
Undelete Files twantrd Linux - General 11 03-24-2003 11:19 AM


All times are GMT -5. The time now is 05:13 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