One of the things I like to do is put a file called "0000AAAA" in my home directory ("touch ~/0000AAAA"). Then remove read and write permissions ("chmod 000 ~/0000AAAA"). Then, when I try and remove my home directory I get the message along the lines of rm: remove write-protected regular empty file `/home/phd/mpj17/0000AAAA'? and I can do a <control-c>. Not fool-proof (damn "-f") but it can help. -- Michael JasonSmith http://www.cosc.canterbury.ac.nz/~mpj17/
- Re: Bad things to do with rm (wa... Ryurick M. Hristev
- Re: Bad things to do with rm (wa... Volker Kuhlmann
- Re: Bad things to do with rm (wa... Rex Johnston
- Re: Bad things to do with rm (wa... Tim Wright
- Re: Bad things to do with rm (wa... Michael Beattie
- Re: Bad things to do with rm (wa... Tim Wright
- Re: Bad things to do with rm (wa... Michael Beattie
- Re: Bad things to do with rm (wa... Matthew Gregan
- Re: Bad things to do with rm (wa... Ryurick M. Hristev
- Re: Bad things to do with rm (wa... Nick Rout
- Re: Bad things to do with rm (wa... Michael JasonSmith
- Re: Bad things to do with rm (wa... Matthew Carr
- Re: Bad things to do with rm Matthew Gregan
- Re: Bad things to do with rm Michael JasonSmith
- Re: Bad things to do with rm Matthew Gregan
- Re: Bad things to do with rm Christopher Sawtell
- Re: MS networks (was Re: Partitioning) Tim Wright
- Re: MS networks (was Re: Partitioning) Christopher Sawtell
- Re: Partitioning Stuart Johnsen
- Re: Partitioning Paul
- Re: Partitioning Matthew Carr