首页 > 其他分享 >银河麒麟服务器操作系统目录、文件显示颜色的设置生效

银河麒麟服务器操作系统目录、文件显示颜色的设置生效

时间:2022-10-23 18:02:23浏览次数:118  
标签:01 操作系统 麒麟 writable colors dir Directory 服务器 DIR

拷贝/etc/DIR_COLORS文件为当前主目录的 .dir_colors

命令:cp /etc/DIR_COLORS ~/.dir_colors

修改~/.dir_colors中DIR对应的颜色 vim ~/.dir_colors

找到下面这一行:

DIR 01;34(01:粗体,34:蓝色)

改为:

DIR 01;33(01:粗体,33:黄色)

1)效果列表: 00     默认

01     加粗

04     下划线

05     闪烁

07     反显

08     隐藏

2)颜色列表

31~37    分别表示前景色为红、绿、橙、蓝、紫、青、灰

90~97    分别表示前景色为深灰、淡红、淡绿、黄色、淡蓝、淡紫、青绿、白色

40~47    分别表示背景色为黑、红、绿、橙、蓝、紫、青、灰

100~106   分别表示背景色为深灰、淡红、淡绿、黄色、淡蓝、淡紫、青绿

3)文件类型解释 no    NORMAL, NORM 全局默认 fi    FILE 普通文件 di     DIR 目录 ln    SYMLINK, LINK, LNK 链接 pi    FIFO, PIPE 管道 do    DOOR Door bd    BLOCK, BLK 块设备 cd    CHAR, CHR 字符设备 or    ORPHAN 目标不存在到符号链接 so    SOCK 套接字Socket su    SETUID 属主setuid有效的文件 sg    SETGID 属组setuid有效到文件 tw    STICKY_OTHER_WRITABLE Directory that is sticky and other-writable ( t,o w) ow    OTHER_WRITABLE Directory that is other-writable (o w) and not sticky st    STICKY Directory with the sticky bit set ( t) and not other-writable ex    EXEC Executable file (i.e. has ‘x’ set in permissions) mi    MISSING Non-existent file pointed to by a symbolic link (visible when you type ls -l) lc     LEFTCODE, LEFT Opening terminal code rc     RIGHTCODE, RIGHT Closing terminal code ec    ENDCODE, END Non-filename text

4)也可以通过写LS_COLORS到./bashrc中的方式来实现

标签:01,操作系统,麒麟,writable,colors,dir,Directory,服务器,DIR
From: https://blog.51cto.com/shaowu520/5787401

相关文章