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


Click here to return to the 'About OS X 'trojan horses'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
About OS X 'trojan horses'
Authored by: ilmungo on May 12, '04 02:04:57PM

actually, i tried aliasing rm to "rm -i"; it works as long as you use rm without arguments, and will ask for permission. however, if you use rm -f, it bypasses the permissions, and just deletes the file. is it just me?



[ Reply to This | # ]
About OS X 'trojan horses'
Authored by: samuelam on May 12, '04 02:17:08PM

You're correct.



[ Reply to This | # ]
About OS X 'trojan horses'
Authored by: dmarkman on May 12, '04 07:20:29PM

-i cancel PREVIOUS f, so if you created alias like rm -i and use it like
rm -rf it's essentially as /bin/rm -irf and it's exactly the same as rm -rf



[ Reply to This | # ]