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


Click here to return to the 'Command Line FUD' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Command Line FUD
Authored by: zeusr on May 23, '05 04:09:41PM
Warning! Don't automatically listen to people that know how to make HTML items bold or know pop culture references or can string together three exclamation points in a row!!!

And please read the man page for the command you're FUD'ing. Without a wildcard, 'find' WILL NOT match '.mbox'. To do so, you have to add a splat ('*') to 'mbox', PLUS put it in quotes (single or double). The simplest way to check to see what will be deleted is to remove everything from '-exec' on and add ' | less' to the end of it. The command will be:


find -name mbox | less

It will show the files that are found and that would be deleted with the posted command.

Also, the 'rm' command WILL NOT delete directories with items inside of it WITHOUT the '-R' tag.

The posted command CAN NOT remove directories with items in it, even if it COULD find directories ending in 'mbox', which it CAN NOT since the command is search for files and directories with the ENTIRE name being 'mbox'.

The command you are creating FUD about would look like this:


$ find . -name '*mbox' -exec rm -R {} \;

This is ranting, but I know the *NIX portion of OS X can be a big, scary monster for those that fear change, but please make sure you know what you're talking about before warning others about dangers that aren't there. The Terminal isn't the Boogie Man.

I can't believe I even have to point this out...

[ Reply to This | # ]

Command Line FUD
Authored by: geohar on May 23, '05 04:14:45PM

;) We must have posted at exactly the same time. Like you, I don't want to seem like I'm flaming here, but it is really important that information here which is presented as fact is correct.

Btw. 'man and apropos' are you friends ;)



[ Reply to This | # ]