zoukankan      html  css  js  c++  java
  • Ubuntu终端字体颜色方案

        默认:

    蓝色代表该文件夹;

    绿色代表可运行文件。
    红色表示压缩文件。
    浅蓝色表示链接文件;
    灰色表示其它文件;
    红色闪烁表示链接的文件有问题了

    黄色表示设备文件。

       非常不爽怎么办,改!

    # Attributecodes: 字符属性
    # 00=none 01=bold 04=underscore 05=blink 07=reverse08=concealed
    #00无 01粗体 04下划线 05闪烁 07反转 08隐藏
    # Text color codes: 字符颜色
    # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan37=white
    #30黑 31红 32绿 33黄 34蓝 35粉红 36淡蓝 37白
    # Background color codes: 字符背景色
    # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan47=white
    #40黑 41红 42绿 43黄 44蓝 45粉红 46淡蓝 47白
    NORMAL 00 # global default, although everything should besomething. 普通文件 终端默认颜色
    FILE 00 # normal file 普通文件 终端默认颜色
    DIR 01;34 # directory 文件夹 粗体-蓝字
    LINK 01;36 # symbolic link. (If you set this to ‘target’ instead ofa 符号链接 粗体-淡蓝字
    # numerical value, the color is as for the file pointed to.)
    FIFO 40;33 # pipe 管道API 黑底-黄字
    SOCK 01;35 # socket 套接字API 粗体-粉红字
    DOOR 01;35 # door 门API 粗体-粉红字
    BLK 40;33;01 # block device driver 块设备驱动 粗体-黑底-黄字
    CHR 40;33;01 # character device driver 字符设备驱动 粗体-黑底-黄字
    ORPHAN 40;31;01 # symlink to nonexistent file 指向文件不存在的符号链接粗体-黑底-红字
    SETUID 37;41 # file that is setuid (u+s) 指定UID的文件 红底-白字
    SETGID 30;43 # file that is setgid (g+s) 指定GID的文件 黄底-黑字
    STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable(+t,o+w) +t,o+w权限的文件 绿底-黑字(不经常使用)
    OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and notsticky -t,o+w权限的文件 绿底-蓝字(不经常使用)
    STICKY 37;44 # dir with the sticky bit set (+t) and notother-writable +t,o-w权限的文件 蓝底-白字(不经常使用)
    # This is for files with execute permission:
    EXEC 01;32 有运行权限的文件 粗体-绿字
    # List any file extensions like ‘.gz’ or ‘.tar’ that you would likels
    # to colorize below. Put the extension, a space, and the color initstring.
    # (and any comments you want to add after a ‘#’)
    # If you use DOS-style suffixes, you may want to uncomment thefollowing:
    #.cmd 01;32 # executables (bright green) .cmd可运行文件 粗体-绿字(亮)
    #.exe 01;32 .exe文件 粗体-绿字
    #.com 01;32 .com文件 粗体-绿字
    #.btm 01;32 .btm文件 粗体-绿字
    #.bat 01;32 .bat文件 粗体-绿字
    .tar 01;31 # archives or compressed (bright red) .tar压缩文件粗体-红字(亮)
    .tgz 01;31 .tgz文件 粗体-红字
    .arj 01;31 .arj文件 粗体-红字
    .taz 01;31 .taz文件 粗体-红字
    .lzh 01;31 .lzh文件 粗体-红字
    .zip 01;31 .zip文件 粗体-红字
    .z 01;31 .z文件 粗体-红字
    .Z 01;31 .Z文件 粗体-红字
    .gz 01;31 .gz文件 粗体-红字
    .bz2 01;31 .bz2文件 粗体-红字
    .deb 01;31 .deb文件 粗体-红字
    .rpm 01;31 .rpm文件 粗体-红字
    .jar 01;31 .jar文件 粗体-红字
    # image formats
    .jpg 01;35 .jpg图片 粗体-粉红字
    .jpeg 01;35 .jpeg图片 粗体-粉红字
    .gif 01;35 .gif图片 粗体-粉红字
    .bmp 01;35 .bmp图片 粗体-粉红字
    .pbm 01;35 .pbm 图片 粗体-粉红字
    .pgm 01;35 .pgm图片 粗体-粉红字
    .ppm 01;35 .ppm图片 粗体-粉红字
    .tga 01;35 .tga图片 粗体-粉红字
    .xbm 01;35 .xbm图片 粗体-粉红字
    .xpm 01;35 .xpm图片 粗体-粉红字
    .tif 01;35 .tif图片 粗体-粉红字
    .tiff 01;35 .tiff图片 粗体-粉红字
    .png 01;35 .png 图片 粗体-粉红字
    .mov 01;35 .mov视频 粗体-粉红字
    .mpg 01;35 .mpg视频 粗体-粉红字
    .mpeg 01;35 .mpeg视频 粗体-粉红字
    .avi 01;35 .avi视频 粗体-粉红字
    .fli 01;35 .fli视频 粗体-粉红字
    .gl 01;35 .gl视频 粗体-粉红字
    .dl 01;35 .dl视频 粗体-粉红字
    .xcf 01;35 .xcf视频 粗体-粉红字
    .xwd 01;35 .xwd视频 粗体-粉红字
    # audio formats
    .flac 01;35 .flac音频 粗体-粉红字
    .mp3 01;35 .mp3音频 粗体-粉红字
    .mpc 01;35 .mpc音频 粗体-粉红字
    .ogg 01;35 .ogg音频 粗体-粉红字
    .wav 01;35 .wav音频 粗体-粉红字



    事实上呢,使用dircolor命令就能够显示文件名称颜色设置了(dircolor -p)(它还能够设置)。

    关于怎样改动,相同找到以下一篇文章:

    1. 利用dircolors命令,查看我们的系统当前的文件名显示颜色的值,然后利用管道重定向到用户文件夹下的随意一个文件(这里我们创建了一个.dir_colors文件)

    命令1: cd ~

    命令2: dircolors -p > .dir_colors

    2. 用vim打开.dir_colors文件,然后找到“DIR 01;34” //这里的01表示高亮度显示,34表示蓝色,33表示黄色

    改动为 “DIR 01;33”。保存退出

    3. 为了将改动之后的配置文件导入到dircolors中,我们採取例如以下的方案

    打开用户文件夹下的.bashrc文件,找到类似“eval ‘dircolors -b ‘”(假设没有自行加入)。

    改动为 eval ‘dircolors -b .dir_colors’ 保存退出 //这里的.dir_colors就是我们前面自己创建的文件

    4. 为了让改动生效,退出,并又一次进入系统

    命令: exit

    5. 就能够依照你的意思来显示文件夹了


    版权声明:本文博客原创文章。博客,未经同意,不得转载。

  • 相关阅读:
    config 文件夹中的 dev.env.js
    config 文件夹中的 index.js
    Dialog 对话框 可拖拽
    Pagination 分页 封装
    ElasticSearch学习03--使用Java连接ES
    ElasticSearch学习02--使用Kibana管理ES
    ElasticSearch学习01--基本结构与操作
    redis学习02--使用Jedis调用Redis
    redis学习01--常用命令
    Java基础学习08--JDK1.8特性
  • 原文地址:https://www.cnblogs.com/mengfanrong/p/4650446.html
Copyright © 2011-2022 走看看