LINUX系统中的字母的颜色代表什么?

发布于 2022-07-20 05:33:47 字数 50 浏览 13 评论 4

我只知道蓝色是目录,黑色是文件,那浅蓝和绿色代表什么?谢谢了........各位大狭........

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

甜尕妞 2022-07-27 18:43:43

如果还是不明白的话可以这样.
echo -e "\033[后面的值m"比如后面的值是01;35就是echo -e "\033[01;35m"

[ 本帖最后由 Yuri.G. 于 2006-10-11 10:17 编辑 ]

御守 2022-07-27 14:36:42
  1. [root@server1 ~]# cat /etc/DIR_COLORS
  2. # Configuration file for the color ls utility
  3. # This file goes in the /etc directory, and must be world readable.
  4. # You can copy this file to .dir_colors in your $HOME directory to override
  5. # the system defaults.
  6. # COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
  7. # pipes. 'all' adds color characters to all output. 'none' shuts colorization
  8. # off.
  9. COLOR tty
  10. # Extra command line options for ls go here.
  11. # Basically these ones are:
  12. #  -F = show '/' for dirs, '*' for executables, etc.
  13. #  -T 0 = don't trust tab spacing when formatting ls output.
  14. OPTIONS -F -T 0
  15. # Below, there should be one TERM entry for each termtype that is colorizable
  16. TERM linux
  17. TERM console
  18. TERM con132x25
  19. TERM con132x30
  20. TERM con132x43
  21. TERM con132x60
  22. TERM con80x25
  23. TERM con80x28
  24. TERM con80x30
  25. TERM con80x43
  26. TERM con80x50
  27. TERM con80x60
  28. TERM cons25
  29. TERM xterm
  30. TERM rxvt
  31. TERM xterm-color
  32. TERM color-xterm
  33. TERM vt100
  34. TERM dtterm
  35. TERM color_xterm
  36. TERM ansi
  37. TERM screen
  38. TERM screen.linux
  39. TERM kon
  40. TERM kterm
  41. TERM gnome
  42. TERM konsole
  43. # EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
  44. EIGHTBIT 1
  45. # Below are the color init strings for the basic file types. A color init
  46. # string consists of one or more of the following numeric codes:
  47. # Attribute codes:
  48. # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
  49. # Text color codes:
  50. # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
  51. # Background color codes:
  52. # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
  53. NORMAL 00       # global default, although everything should be something.
  54. FILE 00         # normal file
  55. DIR 01;34       # directory
  56. LINK 01;36      # symbolic link
  57. FIFO 40;33      # pipe
  58. SOCK 01;35      # socket
  59. BLK 40;33;01    # block device driver
  60. CHR 40;33;01    # character device driver
  61. ORPHAN 01;05;37;41  # orphaned syminks
  62. MISSING 01;05;37;41 # ... and the files they point to
  63. # This is for files with execute permission:
  64. EXEC 01;32
  65. # List any file extensions like '.gz' or '.tar' that you would like ls
  66. # to colorize below. Put the extension, a space, and the color init string.
  67. # (and any comments you want to add after a '#')
  68. .cmd 01;32 # executables (bright green)
  69. .exe 01;32
  70. .com 01;32
  71. .btm 01;32
  72. .bat 01;32
  73. .sh  01;32
  74. .csh 01;32
  75. .tar 01;31 # archives or compressed (bright red)
  76. .tgz 01;31
  77. .arj 01;31
  78. .taz 01;31
  79. .lzh 01;31
  80. .zip 01;31
  81. .z   01;31
  82. .Z   01;31
  83. .gz  01;31
  84. .bz2 01;31
  85. .bz  01;31
  86. .tz  01;31
  87. .rpm 01;31
  88. .cpio 01;31
  89. .jpg 01;35 # image formats
  90. .gif 01;35
  91. .bmp 01;35
  92. .xbm 01;35
  93. .xpm 01;35
  94. .png 01;35
  95. .tif 01;35

复制代码

ぃ双果 2022-07-27 10:35:37
  1. $cat /etc/DIR_COLORS

复制代码

╭ゆ眷念 2022-07-27 07:14:34

可能是ln
你ls -l
看一下

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文