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