dircolorsデータベースの名前はLS_COLORSの名前にどのようにマップされますか?

dircolorsデータベースの名前はLS_COLORSの名前にどのようにマップされますか?

一見、dircolors -p一部のタイプには名前があるようです。

#NORMAL 00 # no color code at all
#FILE 00 # regular file: use no color at all
RESET 0 # reset to "normal" color
DIR 01;34 # directory
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
 # numerical value, the color is as for the file pointed to.)
MULTIHARDLINK 00 # regular file with more than one link
FIFO 40;33 # pipe
SOCK 01;35 # socket
DOOR 01;35 # door
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file ...
MISSING 00 # ... and the files they point to
SETUID 37;41 # file that is setuid (u+s)
SETGID 30;43 # file that is setgid (g+s)
CAPABILITY 30;41 # file with capability
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
# This is for files with execute permission:
EXEC 01;32

これらの用語は、で使用されている用語とどのようにマッピングされますかLS_COLORSdircolors -pはいOTHER_WRITABLELS_COLORSそうだと思いますowdircolors -pはいCHR、そうだcdと思いますLS_COLORS

そこには説明がありません。man dircolorsまたはGNUドキュメント。これは他の場所に文書化されていますか?


$ dircolors --version
dircolors (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://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.

Written by H. Peter Anvin.

ベストアンサー1

ユーザーは次のコマンドを使用する必要があります。dircolors設定LS_COLORS。項目間の対応dircolors 構成ファイルファイルと環境変数の値はLS_COLORS文書化されていないため、依存してはいけません。

おすすめ記事