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


Click here to return to the 'Use an alias' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use an alias
Authored by: osxpounder on Oct 14, '02 01:32:57PM

I guess that one nice thing about using the ./-i file is that it can travel with the folder .... so that, if another user tries to "rm *", and she doesn't have an alias set up to protect her, the ./-i file will provide that last-ditch warning before she deletes files ..... no?

I notice this only protects a user if a glob construct[*] is used. If I have a file named 'blah' in the same folder as a file named "-i", I can still delete without protection by typing "rm blah" ... so that's a good reason to put the "rm -i" alias in my own .*rc file ....

Thanks for a potentially very useful tip!

[*] note: now that I think about it, I'm not sure if the asterisk is a glob construct or not. I may misunderstand the term.



[ Reply to This | # ]