電子書籍の厳選無料作品が豊富!

ls -l の結果でパーミッション表示の右側に「@」があるファイルと無いファイルがあるのですが、この「@」ってどういう意味なのでしょうか?

環境はMac OS X10.9.3 のターミナルです。

A 回答 (4件)

MacはあまりよくわかりませんがEAってやつらしいですね



http://d.hatena.ne.jp/kanonji/20100912/1284292517
    • good
    • 0
この回答へのお礼

ありがとうございます。
すっきりしました。

お礼日時:2014/11/12 14:19

こっちでした…


If the file or directory has extended attributes, the permissions field printed by the -l option is followed by a '@' character. Otherwise, if the file or directory has extended security information (such as an access control list), the permissions field printed by the -l option is fol-lowed followed lowed by a '+' character.

@: extended attributes
+: (ACLのような) extended security information
    • good
    • 0
この回答へのお礼

ヘルプにあったのですね。
見落としてました。
ありがとうございます。

お礼日時:2014/11/12 14:19

コマンドでわからないことがあったら、manコマンドでマニュアルを読む、という習慣を付けましょう。


lsコマンドのマニュアルを読むには
man ls
です。

あと、MacOSXはLinuxではない(BSDベース)だし、ls等のコマンド群も(Linuxで採用されている)GNU版のコマンド群ではないので、Linuxについての解説は、参考にはなりますが、全部そのまま使えるわけではありません
    • good
    • 0

> Display a slash (‘/’) immediately after each pathname that is a


> directory, an asterisk (‘*’) after each that is executable, an at
> sign (‘@’) after each symbolic link, an equals sign (‘=’) after
> each socket, a percent sign (‘%’) after each whiteout, and a ver‐
> tical bar (‘|’) after each that is a FIFO.

/ : ディレクトリ
* : 実行可能ファイル
@ : シンボリックリンク <<<<これ
= : ソケット
% : whiteout
| : FIFO

この回答への補足

ありがとうございます。
でもこれは -F オプションの説明だと思います。

-Fオプシンでは普通のファイルに見える(@などの記号はつかない)ですが、-l オプションではパーミッションの表示の右側に「@」がついているファイルが有ります。

補足日時:2014/11/12 11:53
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!