Scroll to navigation

DIRCOLORS(1) 用戶命令 DIRCOLORS(1)

名稱

dircolors - 爲 ls 設置顏色

概述

dircolors [選項]... [文件]

描述

輸出用來設置 LS_COLORS 環境變量的命令。

確定輸出格式:

輸出 Bourne shell 設置 LS_COLORS 的代碼
輸出 C shell 設置 LS_COLORS 的代碼
輸出默認配置
顯示此幫助信息並退出
顯示版本信息並退出

如果參數裏指定了一個文件,程序將從文件中讀取內容以確定應當爲不同的文件類型和擴展名使用怎樣的顏色。在其它情況下,程序會使用一個預編譯的數據庫。如需瞭解這些文件的格式細節,請運行“dircolors --print-database”。

作者

由 H. Peter Anvin 編寫。

報告錯誤

GNU coreutils 的在線幫助: <https://www.gnu.org/software/coreutils/>
請向 <https://translationproject.org/team/zh_CN.html> 報告翻譯錯誤。

版權

Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

參見

完整文檔請見: <https://www.gnu.org/software/coreutils/dircolors>
或者在本地使用: info '(coreutils) dircolors invocation'

本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh

2020年三月 GNU coreutils 8.32