Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
Running Windows on your Mac
I need Unix help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="scott-c" data-source="post: 626114" data-attributes="member: 46766"><p><strong>"?" is a Wildcard as well</strong></p><p></p><p>Be very careful with the use of wildcards and rm. Remember that in Unix, the question mark (?) is also a wildcard that means to match any one character. Thus your command "rm -rf /Volumes/"WINDOWS HD"/.Trashes/502/?*" will silently and recursively delete all files (and directories) that have at least one character in their name. Speaking of other nasties, absolutely do NOT issue that command "rm -rf .*" as this will silently and recursively delete all files beginning with a dot, including ".." which as has been previously stated is the directory above the present location. This means that if you were in say /usr/pmix and issued the offending command, you would erase not only /usr/pmix (and the targeted hidden files, but you would also erase all of /usr. I had a novice SA do this on a cluster once, spent the next four hours rebuilding the thing.</p></blockquote><p></p>
[QUOTE="scott-c, post: 626114, member: 46766"] [b]"?" is a Wildcard as well[/b] Be very careful with the use of wildcards and rm. Remember that in Unix, the question mark (?) is also a wildcard that means to match any one character. Thus your command "rm -rf /Volumes/"WINDOWS HD"/.Trashes/502/?*" will silently and recursively delete all files (and directories) that have at least one character in their name. Speaking of other nasties, absolutely do NOT issue that command "rm -rf .*" as this will silently and recursively delete all files beginning with a dot, including ".." which as has been previously stated is the directory above the present location. This means that if you were in say /usr/pmix and issued the offending command, you would erase not only /usr/pmix (and the targeted hidden files, but you would also erase all of /usr. I had a novice SA do this on a cluster once, spent the next four hours rebuilding the thing. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
Running Windows on your Mac
I need Unix help
Top