免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2838 | 回复: 3
打印 上一主题 下一主题

怎样更改字体颜色 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-15 17:08 |只看该作者 |倒序浏览
每次用ls命令时目录文件的颜色总是深蓝色,看不清楚,请问用什么命令可以改变它的颜色,谢谢

论坛徽章:
0
2 [报告]
发表于 2006-03-15 18:02 |只看该作者
你可以修改LS_COLORS这个环境变量,看到di=01;34那段了么?那个就是目录的颜色

论坛徽章:
0
3 [报告]
发表于 2006-03-15 18:07 |只看该作者
原帖由 adm1ner 于 2006-3-15 17:08 发表
每次用ls命令时目录文件的颜色总是深蓝色,看不清楚,请问用什么命令可以改变它的颜色,谢谢

man ls

  1. LS(1)                                 FSF                                LS(1)

  2. NAME
  3.        ls - list directory contents

  4. SYNOPSIS
  5.        ls [OPTION]... [FILE]...

  6. DESCRIPTION
  7.        List  information  about  the FILEs (the current directory by default).
  8.        Sort entries alphabetically if none of -cftuSUX nor --sort.

  9.        Mandatory arguments to long options are  mandatory  for  short  options
  10.        too.

  11.        -a, --all
  12.               do not hide entries starting with .

  13.        -A, --almost-all
  14.               do not list implied . and ..

  15.        --author
  16.               print the author of each file

  17.        -b, --escape
  18.               print octal escapes for nongraphic characters

  19.        --block-size=SIZE
  20.               use SIZE-byte blocks

  21.        -B, --ignore-backups
  22.               do not list implied entries ending with ~

  23.        -c     with -lt: sort by, and show, ctime (time of last modification of
  24.               file status information) with -l: show ctime and  sort  by  name
  25.               otherwise: sort by ctime

  26.        -C     list entries by columns

  27.        --color[=WHEN]
  28.               control  whether  color is used to distinguish file types.  WHEN
  29.               may be 鈔ever? 鈇lways? or 鈇uto?

  30.        -d, --directory
  31.               list directory entries instead of contents

  32.        -D, --dired
  33.               generate output designed for Emacs?dired mode

  34.        -f     do not sort, enable -aU, disable -lst

  35.        -F, --classify
  36.               append indicator (one of */=@|) to entries

  37.        --format=WORD
  38.               across -x, commas -m, horizontal -x, long -l, single-column  -1,
  39.               verbose -l, vertical -C

  40.        --full-time
  41.               like -l --time-style=full-iso

  42.        -g     like -l, but do not list owner

  43.        -G, --no-group
  44.               inhibit display of group information

  45.        -h, --human-readable
  46.               print sizes in human readable format (e.g., 1K 234M 2G)

  47.        --si   likewise, but use powers of 1000 not 1024

  48.        -H, --dereference-command-line
  49.               follow symbolic links on the command line

  50.        --indicator-style=WORD append indicator with style WORD to entry names:
  51.               none (default), classify (-F), file-type (-p)

  52.        -i, --inode
  53.               print index number of each file

  54.        -I, --ignore=PATTERN
  55.               do not list implied entries matching shell PATTERN

  56.        -k     like --block-size=1K

  57.        -l     use a long listing format

  58.        -L, --dereference
  59.               when showing file information for a symbolic link, show informa-
  60.               tion for the file the link references rather than for  the  link
  61.               itself

  62.        -m     fill width with a comma separated list of entries

  63.        -n, --numeric-uid-gid
  64.               like -l, but list numeric UIDs and GIDs

  65.        -N, --literal
  66.               print  raw entry names (don鈚 treat e.g. control characters spe-
  67.               cially)

  68.        -o     like -l, but do not list group information

  69.        -p, --file-type
  70.               append indicator (one of /=@|) to entries

  71.        -q, --hide-control-chars
  72.               print ? instead of non graphic characters

  73.        --show-control-chars
  74.               show non graphic characters as-is  (default  unless  program  is
  75.               鈒s?and output is a terminal)

  76.        -Q, --quote-name
  77.               enclose entry names in double quotes

  78.        --quoting-style=WORD
  79.               use  quoting style WORD for entry names: literal, locale, shell,
  80.               shell-always, c, escape

  81.        -r, --reverse
  82.               reverse order while sorting

  83.        -R, --recursive
  84.               list subdirectories recursively

  85.        -s, --size
  86.               print size of each file, in blocks

  87.        -S     sort by file size

  88.        --sort=WORD
  89.               extension -X, none -U, size -S, time -t, version -v

  90.               status -c, time -t, atime -u, access -u, use -u

  91.        --time=WORD
  92.               show time as WORD instead of modification time:  atime,  access,
  93.               use,  ctime  or  status;  use  specified  time  as  sort  key if
  94.               --sort=time

  95.        --time-style=STYLE
  96.               show times using style STYLE: full-iso, long-iso,  iso,  locale,
  97.               +FORMAT

  98.               FORMAT  is  interpreted  like  鈊ate? if FORMAT is FORMAT1<new-
  99.               line>FORMAT2, FORMAT1 applies to non-recent files and FORMAT2 to
  100.               recent  files;  if  STYLE is prefixed with 鈖osix-? STYLE takes
  101.               effect only outside the POSIX locale

  102.        -t     sort by modification time

  103.        -T, --tabsize=COLS
  104.               assume tab stops at each COLS instead of 8

  105.        -u     with -lt: sort by, and show, access time with  -l:  show  access
  106.               time and sort by name otherwise: sort by access time

  107.        -U     do not sort; list entries in directory order

  108.        -v     sort by version

  109.        -w, --width=COLS
  110.               assume screen width instead of current value

  111.        -x     list entries by lines instead of by columns

  112.        -X     sort alphabetically by entry extension

  113.        -1     list one file per line

  114.        --help display this help and exit

  115.        --version
  116.               output version information and exit

  117.        SIZE  may  be (or may be an integer optionally followed by) one of fol-
  118.        lowing: kB 1000, K 1024, MB 1,000,000, M 1,048,576, and so on for G, T,
  119.        P, E, Z, Y.

  120.        By  default,  color is not used to distinguish types of files.  That is
  121.        equivalent to using --color=none.  Using the --color option without the
  122.        optional  WHEN  argument  is  equivalent to using --color=always.  With
  123.        --color=auto, color codes are output only if standard  output  is  con-
  124.        nected to a terminal (tty).

  125. AUTHOR
  126.        Written by Richard Stallman and David MacKenzie.

  127. REPORTING BUGS
  128.        Report bugs to <bug-coreutils@gnu.org>.

  129. COPYRIGHT
  130.        Copyright 漏 2002 Free Software Foundation, Inc.
  131.        This is free software; see the source for copying conditions.  There is
  132.        NO warranty; not even for MERCHANTABILITY or FITNESS FOR  A  PARTICULAR
  133.        PURPOSE.

  134. SEE ALSO
  135.        The  full  documentation  for ls is maintained as a Texinfo manual.  If
  136.        the info and ls programs are properly installed at your site, the  com-
  137.        mand

  138.               info ls

  139.        should give you access to the complete manual.

  140. ls (coreutils) 4.5.3              August 2003                            LS(1)
复制代码

论坛徽章:
0
4 [报告]
发表于 2006-03-15 18:33 |只看该作者
done,多谢二位
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP