|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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....) |
|
#2
|
||||
|
||||
|
Nope, you're screwed!
__________________
Words must be weighed, not counted. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
||||
|
||||
|
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 ) |
|
#7
|
||||
|
||||
|
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!
|
|
#8
|
||||
|
||||
|
I have an alias:
alias rm='rm -i' helps to $sanity++ christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
|
#9
|
||||
|
||||
|
Holy Christ! I completely forgot about this great trick!! Thanks a lot.
![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > deleted directory by mistake.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|