Thanks everyone! I'm eagerly waiting till 3 pm to see if it works. Andrew Glover wrote:
if [ -f /home/jenny/cwp/ ]; then
if [ -d /home/jenny/cwp/ ]; then
Ah! I wondered what the -f was. Ta. Adam Bower wrote:
tar -czf /backups/cwpbak.tar.gz /home/jenny/cwp/
Missed out the gz. Damn.And the wrong way round! Thanks Adam I've left the o-reilly bible at home this week, it's a hassle to transport between home and work on the bike, could do with two copies really.
Shall I share my awful moment with you all? Trying to find the right command to copy a directory to another directory, I went to clear the second directory for a second try. So i typed in rm -r ./* Except - you've guessed what i omitted in my haste - the full stop. Ohmygod. Luckily for me I was not superuser and the puzzled linuxbox asked me if I was sure i wanted to delete Games or something, at which point i woke up and lunged for the kill button. As if i haven't read in my O'R book to sit on my hands when i type a command for this very reason? Hee hee. I'm still pale and shaking. Anyone else ever done this? Jenny.
On Thu, 19 Jul 2001 Jenny_Hopkins@toby-churchill.com wrote:
Shall I share my awful moment with you all? Trying to find the right command to copy a directory to another directory, I went to clear the second directory for a second try. So i typed in rm -r ./* Except - you've guessed what i omitted in my haste - the full stop. Ohmygod. Luckily for me I was not superuser and the puzzled linuxbox asked me if I was sure i wanted to delete Games or something, at which point i woke up and lunged for the kill button. As if i haven't read in my O'R book to sit on my hands when i type a command for this very reason? Hee hee. I'm still pale and shaking. Anyone else ever done this?
I had a software developer do this to me before, they wanted to delete some temporary files created by an autobuild script on a Irix box, they su'ed and typed as root rm -r * unfortunatly on Irix roots home dir is you've guessed / no /root We were saved though as we had an automounter and NFS mounted home directorys and with automounters you get a directory /a/ which has all the automounts mounted below it. As a few people were logged in this command started to take a while and the guy hit ^c when he saw it complaining it couldn't delete someone else files!
I havn't done it myself.... yet! Adam
Jenny_Hopkins@toby-churchill.com wrote:
Shall I share my awful moment with you all? Trying to find the right command to copy a directory to another directory, I went to clear the second directory for a second try. So i typed in rm -r ./*
heh, we all do it. when I first started using linux, I was logged in as root and typed
'chmod -Rf 700 .*'
one reinstall later....
Sz
Although not Linux-related, I had to laugh when the MD of the company I'm currently working for launched Adobe Acrobat/Distiller (or whatever spiders a web site to generate PDF pages from it) to follow all the links of a web site we were about to demonstrate the next day. She launched the job in the admin area of the site where the client can add and delete products and successfully managed to nuke the entire database of it's entire product range.
I received a call at 9pm that night to ask, very nicely might I add, if I could restore the database from backup ASAP as she was due to visit the clients in the morning for the demonostration.
D'oh!!!!
Regards,
Martyn
-- http://www.drake.org.uk http://www.alug.org.uk Mobile/SMS: 07720 050 967 Fax: 0207 900 2254
----- Original Message ----- From: "Neill Newman" neill@entora.co.uk To: alug@stu.uea.ac.uk Sent: Thursday, July 19, 2001 2:12 PM Subject: Re: [Alug] cron job
Jenny_Hopkins@toby-churchill.com wrote:
Shall I share my awful moment with you all? Trying to find the right command to copy a directory to another
directory,
I went to clear the second directory for a second try. So i typed in rm -r ./*
heh, we all do it. when I first started using linux, I was logged in as root and typed
'chmod -Rf 700 .*'
one reinstall later....
Sz
-- Open Source Specialists http://www.entora.co.uk/ Tel: +44 (0)701 0723686 Fax: +44 (0)870 3214368
alug, the Anglian Linux User Group list Send list replies to alug@stu.uea.ac.uk http://www.anglian.lug.org.uk/
http://rabbit.stu.uea.ac.uk/cgi-bin/listinfo/alug
See the website for instructions on digest or unsub!
--- Martyn Drake martyn@alug.org.uk wrote:
Although not Linux-related, I had to laugh when the MD of the company I'm currently working for launched Adobe Acrobat/Distiller (or whatever spiders a web site to generate PDF pages from it) to follow all the links of a web site we were about to demonstrate the next day. She launched the job in the admin area of the site where the client can add and delete products and successfully managed to nuke the entire database of it's entire product range.
Once I was logged in remotely to a Linux box and was rooting through the /usr directory and found a svgatest program, which i though, ooh whats that, I executed it and it whiped out the X session the owner had running on there screen so that it could have nice patterns on it.
Also a script of $0&;$0&; is fun to try.
As for rm -R /* This is the command I enjoy the most, usually on other people!
Thanks
D
D'oh!!!!
Regards,
Martyn
===== -------------------- "We all know Linux is great... it does infinite loops in 5 seconds." Linus Torvalds
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Jenny_Hopkins@toby-churchill.com wrote:
Shall I share my awful moment with you all? Hee hee. I'm still pale and shaking. Anyone else ever done this?
I learnt C and UNIX at the same time while coding for a MUD, and once wiped the complete source tree by doing something rather similar. Fortunately, I think I'd set up nightly backups, so we only lost a day or so's work.
Alexis