Search code examples
bashmacosunixlsiterm2

In git when adding files, a number of files appear as different, what does the symbol @ mean when ls in terminal?


In git when adding files, a number of files appear as different, what does the symbol @ mean when ls in terminal?

For example, when running ls -lh, what does the @ symbol denote? This is run on MacOS - item2 bash, if that makes any difference.

the following is the output of two files but one with an @ behind it. permissions are similar and both are files in the same directory :

-rw-r--r--  1 me  staff    10K 10 Jan 10:10 README.fileone.md
-rw-r--r--@ 1 me  staff    10K 11 Jan 10:10 README.filetwo.md

and the recommended way(s)/commands to change these files.

edit

thanks for answers below.

summary of answer

use xattr to view or edit the file

$xattr -c filename.xxx     # deletes ALL extended attributes from file 
$xattr -l filename.xxx     # views attributes from file 

Solution

  • The file has extended attributes. With xattr command-line utility you can inspect and modify them.