@在linux文件中是什么意思

ste*_*ang 0 linux

可能的重复:
os x 终端上 ls 输出的 @ 是什么意思?

我在我的主文件夹中@运行时发现了这个符号ls -al,这是什么意思?

drwxr-xr-x   7 yangchenyun  admin   238 Jul 19 16:32 Code
drwx------@ 25 yangchenyun  admin   850 Oct  2 20:08 Dropbox
Run Code Online (Sandbox Code Playgroud)

use*_*ser 5

根据info ls,第 10.1.2 节列出了哪些信息(来自 GNU coreutils 8.5 手册):

 Following the file mode bits is a single character that specifies
 whether an alternate access method such as an access control list
 applies to the file.  When the character following the file mode
 bits is a space, there is no alternate access method.  When it is
 a printing character, then there is such a method.
Run Code Online (Sandbox Code Playgroud)

所以这@表明文件上存在替代访问方法。这很可能意味着 ACL。试试看getfacl Dropbox你会得到什么。

您可能需要安装一些软件包来获取与 ACL 相关的命令。在 Debian 中,getfaclacl软件包提供,因此sudo apt-get install acl如果尚未安装它。其他发行版可能会也可能不会使用相同的包名。