zoukankan      html  css  js  c++  java
  • Freebsd/tcsh 改变控制台下ls显示文件目录的颜色

    快速设置

    setenv CLICOLOR 1 // 这个貌似没什么用设成1、0都显示彩色 
    setenv LSCOLORS Gxfxaxdxcxegedabagacad

    关于LSCOLORS的一些说明

    LSCOLORS 的值描述了当CLICOLOR被启用时将会显示的颜色。它的值为多个fb对组合,其中f代表前景色(文字颜色)b代表背景颜色。

    各种颜色带号如下:
    a black
    b red
    c green
    d brown
    e blue
    f magenta
    g cyan
    h light grey
    A bold black, usually shows up as dark grey
    B bold red
    C bold green
    D bold brown, usually shows up as yellow
    E bold blue
    F bold magenta
    G bold cyan
    H bold light grey; looks like bright white
    x default foreground or backgroundNote that the above are standard ANSI colors. The actual display may differ depending on the color capabilities of the terminal in use.

    各属性的顺序如下:
    1. directory
    2. symbolic link
    3. socket
    4. pipe
    5. executable
    6. block special
    7. character special
    8. executable with setuid bit set
    9. executable with setgid bit set
    10. directory writable to others, with sticky bit
    11. directory writable to others, without sticky bit

    默认颜色设置为 “exfxcxdxbxegedabagacad”。蓝字默认背景显示常规目录,红底黑字显示setuid可执行文件等。

  • 相关阅读:
    设计模式(六)Prototype Pattern 原型模式
    设计模式(五)Builder Pattern建造者模式
    Linux安装软件
    日志技术及JUL入门
    IDEA推出新字体,极度舒适
    HDFS的API操作
    Apollo的灰度发布
    Apollo整合SpringBoot开发
    Apollo配置发布原理
    Apollo应用配置
  • 原文地址:https://www.cnblogs.com/toby/p/3114870.html
Copyright © 2011-2022 走看看