LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
 
Search this Thread
Old 04-25-2004, 02:25 PM   #1
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
undo rm *


hi there,

ROFL, linux for more than a year and then I do this stupid mistake out of nowhere.

I usually download .torrent files to a totally different folder than my $HOME and run

Code:
btlaunchmanycurses.py .
Anyhow, just this time I don't know what got me, I decided to download a few .torrents to my $HOME DIR and started to download the torrents. Afterwards I actually wanted to just delete the .torrent files and forgot the blue part I wrote down there

Code:
rm *.torrent
so it basically deleted a few script files, a few images and just little stuff that's annoying to lose.


is there anyway I can undo that

rm * ?

I have not added or deleted anything since that problem occurred.

Please advise!
 
Old 04-25-2004, 03:31 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,435
Blog Entries: 54

Rep: Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240
Check out the LQ FAQ: Security references, post 5 "Forensics, recovery, undelete" under "Undelete HOWTO's" and below.
Admittedly it's nearly all ext2/3, and if the partition has seen much writing since you deleted the files your chances diminish rather quickly. Best way to recover is to force remount the partition readonly or kill everything and do a fast shutdown and boot a cdr like Knoppix, FIRE, PSK or alike.

Last edited by unSpawn; 04-25-2004 at 03:35 PM.
 
Old 04-25-2004, 03:39 PM   #3
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 252

Original Poster
Rep: Reputation: 30
thanks for your fast response UnSpawn

I just rewrote all my scripts, images i don't really worry about I guess...so I'm pretty much fine..I'll still read that link though that you gave me and hopefully this will be a lesson for me (don't be too quit with your ENTER key rofl)

thanks again!
 
Old 04-25-2004, 04:16 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,435
Blog Entries: 54

Rep: Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240
No problem. Only piece of advice I'd give you and anyone is to at least try it once for instance using mc. Practice doesn't make perfect in case of undeletion, but having the skill will definately be an asset when necessary.
 
  


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
VI and UNDO jinksys Linux - Software 1 07-30-2005 04:46 PM
undo a theme loninappleton Linux - Newbie 4 11-04-2004 12:31 AM
How do i undo this?! Jengo Slackware 2 07-13-2004 11:50 AM
i know what i have done ! how do i undo it ? ethereal9 Mandriva 2 10-03-2003 05:19 PM
How to undo this? latino Linux - Software 4 09-21-2003 08:45 AM


All times are GMT -5. The time now is 02:46 PM.

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