ls 颜色白色与绿色

ls 颜色白色与绿色

我试着看ls 中不同的颜色代表什么意思?,但列表中没有注明颜色是白色。

请看下面的图片:

Gnome 终端的屏幕截图

什么是绿色,什么是白色(libfuse.solibfuse3.so)?

答案1

Green 对相关答案的描述如下:

绿色的:可执行或可识别的数据文件

白色的似乎是默认颜色(0), 意思是普通(非文件名)文本常规文件

更多信息可以在这里找到男人目录颜色

ISO 6429 颜色序列由用分号分隔的数字序列组成。最常见的代码是:

           0   to restore default color
           1   for brighter colors
           4   for underlined text
           5   for flashing text
          30   for black foreground
          31   for red foreground
          32   for green foreground
          33   for yellow (or brown) foreground
          34   for blue foreground
          35   for purple foreground
          36   for cyan foreground
          37   for white (or gray) foreground
          40   for black background
          41   for red background
          42   for green background
          43   for yellow (or brown) background
          44   for blue background
          45   for purple background
          46   for cyan background
          47   for white (or gray) background

   Not all commands will work on all systems or display devices.

   ls uses the following defaults:

   NORMAL    0           Normal (nonfilename) text
   FILE      0           Regular file

   DIR       32          Directory
   LINK      36          Symbolic link
   ORPHAN    undefined   Orphaned symbolic link
   MISSING   undefined   Missing file
   FIFO      31          Named pipe (FIFO)
   SOCK      33          Socket
   BLK       44;37       Block device
   CHR       44;37       Character device
   EXEC      35          Executable file

相关内容