|
|
A warning on a new destructive 'trojan horse'
I have been looking for clarification about rm -rf. Are my following assumptions correct?
A warning on a new destructive 'trojan horse'
no, rm -rf ~/* is an exact synonym for rm -rf ~. The shell will interpret the ~/* and expand (glob) it in arguments for each entry in your home directory, so the actual command would be rm -rf ~/Library ~/Projects ....
A warning on a new destructive 'trojan horse'
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.
A warning on a new destructive 'trojan horse'
Drop to the Terminal and type
Or, if you are not at a Mac OS X machine, go to:
http://www.hmug.org/man/1/rm.html.
If I were to try this ‘exploit,' I'd use "rm -rfd ~".
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|