How to remove the @ / extended metadata of a file?

Posted on


I know that the @ in

-rwxrwxrwx@ 1 me  staff     0 16 Mai 10:55 myLog.txt

means, that there is some extended metadata attached.

Fine. Doesn’t interest me.

I need to know how to remove it ?

I get this again and again while in developing stage of some php scripts. And again and again my logfiles get blocked by the @ and my scripts can’t write into the log-files anymore. My only solution so far: remove the file and recreate it and rechmod the permissions of the file, which of course sucks.

And maybe you can tell me what is causing it ? It seems completly random. Can I deactivate this blocking @

Edit and Solution:

Thanks to the comments I have found out now that the following command removes the “@”

xattr -d com.macromates.caret filename

And the next command prevents Textmate from adding it again (close Textmate before running the command).

defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1

Source and more infos here


Extended attributes are most likely added by your text editor. TextMate uses them to store e.g. the caret position. Disable that feature of to get rid of the unused extended attributes altogether.

You can delete extended attributes using


and list them using

ls -l@

Leave a Reply

Your email address will not be published. Required fields are marked *