DIRCOLORS(1) | General Commands Manual | DIRCOLORS(1) |
dircolors - 設定`ls'顯示結果的顏色
dircolors [-b] [--sh] [--bourne-shell] [-c] [--csh] [--c-shell] [-p] [--print-database] [--help] [--version] [FILE]
dircolors
輸出希望得到的輸出顏色,是由
ls (和 dir, 等.).
典型的用法:
如果指定了 FILE , dircolors 從該檔案確定那些顏色用於什麼檔案型別和外延. 否則使用一個預先編譯好的資料庫. 關於這個檔案的詳細格式, 執行`dircolors --print-database'.
輸出是一個shell命令去設定 LS_COLORS 環境變數.你能夠指定shell語法來在命令列使用,或者 dircolors 將推測它是來自 SHELL 環境變數的值.
完成這個命令後, `ls --color' (可能已經alias 為 ls) 會以渴望的顏色列表檔案.
變數 SHELL and TERM 通常能從shell命令中正確找到. 變數LANG, LC_ALL, LC_CTYPE 和 LC_MESSAGES 有通常的意義. 變數LS_COLORS 被用於資訊到 ls.
有色彩的 ls(1) 輸出是一項 GNU 擴充套件. 這個實現和跟著最早的 Slackware Linux 釋出的 dircolors/color-ls 包不太相容. 尤其是沒有提供對 Z shell 和 Korn shell 的支援. 使用這些shells 應該使用 Bourne shell (-b) 模式.
dir_colors(5), ls(1)
這份 dircolors 的描述能夠在 fileutils-4.0 包中找到; 其它的版本也許有些微的不同. 對於修改和新增的請郵到 aeb@cwi.nl. 漏洞報告郵到 fileutils-bugs@gnu.ai.mit.edu.
Scorpio <rawk@chinese.com>
2000/10/9
http://cmpp.linuxforum.net
本頁面中文版由中文
man 手冊頁計劃提供。
中文 man
手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
November 1998 | GNU fileutils 4.0 |