162

When I check permission of less files from the command line on my Snow Leopard OSX system using Bash I see -rw-r--r--@ for certain files and for others I just see -rw-r--r-- What does the @ mean here?

0

1 Answer 1

155

On OSX, the @ symbol indicates that the file has extended attributes. You can see them using xattr -l, or ls -l@. From man 1 ls on OSX 10.9:

The following options are available:
-@      Display extended attribute keys and sizes in long (-l) output.
...
If the file or directory has extended attributes, 
the permissions field printed by the `-l` option is followed by a `@` character.
2
  • Thanks! I just tried and I saw xattr -l variables.less com.macromates.caret: .. Need to see why TextMate does this..
    – rhand
    Dec 26, 2013 at 8:09
  • 8
    And just in case if you want to remove those attribes, you can use xattr -c filename.ext or xattr -cr somefolder to do it recursively. Jul 9, 2021 at 7:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.