Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Potential danger' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Potential danger
Authored by: danielj7 on May 15, '01 09:17:30PM
This can be useful, but if you come to rely on it, it can be disastrous. What happens if you are using another computer or even a different account on the same computer? You'll type "rm *" expecting it to ask you if you want to delete each file, but instead it'll just silently delete them. A better alternative would be

alias rmi rm -i

or

alias del rm -i

Another thing that can make life easier, if you're using tcsh, is to use

set rmstar

in your ".cshrc" file. Now if you type "rm *" the shell will ask if you really want to delete all files. A good source for such hints is Using csh & tcsh from O'Reilly.

[ Reply to This | # ]