SunQuest
           Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 8th, 2002, 12:41 PM
English Guy English Guy is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Boston MA
Posts: 100 English Guy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 8 sec
Reputation Power: 0
Red face deleted directory by mistake....

I had a file called &review.plme; in my cgi directory, & tried removing it by typing rm $review*. I used a $ instead of an & sign, & now I seem to of deleted all the files in the cgi directory!!
Does anyone know any way of undeleting these files? (I only have really old backups....)

Reply With Quote
  #2  
Old December 8th, 2002, 06:29 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Nope, you're screwed!
__________________
Words must be weighed, not counted.

Reply With Quote
  #3  
Old December 8th, 2002, 07:52 PM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
Yup, you are screwed. Well, certain filesystems (not ext3) will allow you to try data recovery tools, but it's pretty hit-or-miss. The lesson to be learned is "Become one with tab completion" That way you never mistype anything.
__________________
Debian - because life's too short for worrying.
Best. (Python.) IRC bot. ever.

Reply With Quote
  #4  
Old December 9th, 2002, 09:49 AM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
You should try using a graphical file manager,they usually move files to ~/.trash,this way you can always bring them back.Or next time use mv filename ~/.trash instead of rm.

Reply With Quote
  #5  
Old December 9th, 2002, 12:04 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Or create a shell script called 'rm' which will move files rather than deleting them. I have one that I got here but it's not complicated to code.

Reply With Quote
  #6  
Old December 9th, 2002, 05:43 PM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
With great power comes great responsibility. Just to make you feel better, this reminds me of the time I wiped out an entire website (2500+ files of data, code, images, and more) with a perl script that was supposed to be looking for absolute hyperlinks. Oops.. ">file" is not good when "file" is the file you want to read... not the file you want to create...

OK, so maybe that doesn't make you feel better...

Course.. I had backups... do yooooouuuu? (I'll bet you will from now on if you didn't )

Reply With Quote
  #7  
Old December 9th, 2002, 07:29 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
I understand, I used to praise the Windows way of not backing up stuff and all. A few weeks ago my cousin was bugging to install XP or 98 but I had no partition left so I started backing up stuff into another 30GB partition whose size really is 10GB. I moved a few movies and then I realised I coudn't mount my Slackware partition where I had a HDD image with lots of stuff including several DOS bootdisks. As it turns out the "30" GB partition was overlapping the Slackware one and finaly ended up with... nothing left out of it. I'm using Gentoo right now I barely used the Slack one at all in which I had worth 4 years of data. That was a big loss for me. You can say it, stupid riv, STUPID IDIOT!

Reply With Quote
  #8  
Old December 10th, 2002, 05:26 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 42 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
I have an alias:

alias rm='rm -i'

helps to $sanity++

christo

Reply With Quote
  #9  
Old December 10th, 2002, 09:47 AM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Holy Christ! I completely forgot about this great trick!! Thanks a lot.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > deleted directory by mistake....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway