Mac OS X command-line of the day

sudo xattr -d com.apple.quarantine *

This removes the “This file was downloaded, are you sure…” warning when dealing with downloaded files.

There are attributes other than com.apple.quarantine, such as:

  • com.apple.ResourceFork
  • com.apple.FinderInfo
  • com.apple.diskimages.recentcksum
  • com.apple.metadata:kMDItemWhereFroms
  • com.macromates.caret

I like that last one.
I guess it’s how TextMate
remembers its position in a text file.

If you want to see what extended attributes your files have, you can either use “xattr -l filename” or just “ls -l@“.



3 Responses to “Mac OS X command-line of the day”

  1. Music Says:

    i have use the extended attributes. its great.

  2. Prabir Says:

    Great post. I liked it.

  3. Pingyao tour Says:

    Great post, what you said is really helpful to me. I can't agree with you anymore. I have been talking with my friend about, he though it is really interesting as well. Keep up with your good work, I would come back to you.

Leave a Reply


Warning: require_once(/home/clith/tech.tnir.org/wp-content/themes/rae-black/footer.php): failed to open stream: Permission denied in /home/clith/tech.tnir.org/wp-includes/template.php on line 684

Fatal error: require_once(): Failed opening required '/home/clith/tech.tnir.org/wp-content/themes/rae-black/footer.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/clith/tech.tnir.org/wp-includes/template.php on line 684