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


Click here to return to the 'A warning on a new destructive 'trojan horse'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A warning on a new destructive 'trojan horse'
Authored by: ReznorB5 on May 14, '04 06:32:11AM

Actually, rm -rf ~ and rm -rf ~/* are different because the former deletes the user directory itself and all subdirectories and files, whereas latter refers to the contents of the user directory, excluding any files that begin with a dot. Also, -R and -r are equivalent flags, and when you use -f, it implies -d automatically, so only -f is needed.

Also, in order so see what files it will get when you specify "~" slightly differently, try these commands and compare. This will list the contents of your user directory:
ls -Ra ~
ls -Ra ~/
ls -Ra ~/*



[ Reply to This | # ]