Linux ls 显示黄色背景的文件

Linux ls shows files with yellow background color

这个黄色(Ubuntu 上的橙色)背景颜色在 ls 中意味着什么?

neoexpert@sonderbyte:/srv/thing$ ls -l
total 32
drwxrwsr-x 2 root developers 4096 Aug 25 12:30 branches
-rw-rw-r-- 1 root developers   66 Aug 25 12:30 config
-rw-rw-r-- 1 root developers   73 Aug 25 12:30 description
-rw-rw-r-- 1 root developers   23 Aug 25 12:30 HEAD
drwxrwsr-x 2 root developers 4096 Aug 25 14:00 hooks
drwxrwsr-x 2 root developers 4096 Aug 25 12:30 info
drwxrwsr-x 4 root developers 4096 Aug 25 12:30 objects
drwxrwsr-x 4 root developers 4096 Aug 25 12:30 refs
neoexpert@sonderbyte:/srv/thing$ 

试试 ls -l 就知道了(这比在这里问要快)。

阅读 ls(1) 并使用 echo $LS_COLORS

查看您的 LS_COLORS 环境变量

(看起来你对奇怪的文件有怀疑 sticky bit on plain files; see also this; try also stat(1)....)

不要在文件上使用粘滞位(仅在目录上)。

顺便说一句,我怀疑为 git 设置粘滞位是个错误。