<div dir="ltr"><div><div><div><div><div><div>On VMS, you can configure a system to make auto-backups. It does this by placing a semicolon at the end of each file and having a number increment each time the file is saved.  Thus, you can get listings like:<br>
<br></div>thesis.txt;1<br>thesis.txt;2<br>thesis.txt;3<br></div>joke.txt;1<br></div>paper.doc;1<br>paper.doc;2<br><br>While in college, I was working the lab and a user came in asking for help with his account.  It was full and he couldn't save the latest revision of his paper. I was already working two calls, so when he asked "how do I remove files from my account", I answered without thinking:  " DELETE *.*;* "<br>
<br></div>In about twenty seconds, I realized my mistake, but the damage was done.  His files were all gone, during finals week, and I didn't have access to the backup system to restore them.<br><br></div>Oops.<br><br>
</div>-Josh<br><div><div><div><div><div><div><br><br><br><br><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 18, 2013 at 12:22 PM, Mike Miller <span dir="ltr"><<a href="mailto:mbmiller+l@gmail.com" target="_blank">mbmiller+l@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a few users on a box at work.  Some are not active.  I'm also about to move everything to a new machine.<br>

<br>
This is the stupid thing I did.  The hard drive was full so I needed to make some space.  I copied files from /home/marc to another machine and then was going to remove /home/marc.  So I did this...<br>
<br>
cd /home/marc<br>
sudo rm -rf *  <-- that would have been OK, but I killed that command<br>
cd ..<br>
sudo rm -rf marc  <-- what I intended to do, which would have been fine<br>
sudo rm -rf *  <-- what I did instead<br>
<br>
That would have wiped every file out of /home if I hadn't realized almost instantly what I had done.  So I hit Ctrl-C a couple of times fast and looked at the damage.  Nothing was lost except for all of the files for the user whose name was first in alphabetical order.  All 858 MB of files.<br>

<br>
Luckily, this user was probably just using the account to transfer files between other machines on a firewalled network, so it might not be a big deal, but I'm not sure.<br>
<br>
I consider myself lucky that I stopped it quickly, but that doesn't help him because his files are all gone.<br>
<br>
Yikes.  I'll bet you know you should be careful with this command:<br>
<br>
sudo rm -rf *<br>
<br>
That's like the most dangerous command there is, except maybe for this one:<br>
<br>
sudo rm -rf /*<br>
<br>
But we don't use that command in real life, just a joke for noobs.<br>
<br>
Mike<br>
______________________________<u></u>_________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
</blockquote></div><br></div>