2 .\" manpage for /etc/dir_colors, config file for dircolors(1)
3 .\" extracted from color-ls 3.12.0.3 dircolors(1) manpage
5 .\" This file may be copied under the conditions described
6 .\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
7 .\" that should have been distributed together with this file.
9 .\" Modified Sat Dec 22 22:25:33 2001 by Martin Schulze <joey@infodrom.org>
11 .\" Japanese Version Copyright (c) 2000-2002 Yuichi SATO
12 .\" all rights reserved.
13 .\" Translated Tue Jul 4 18:44:50 JST 2000
14 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
15 .\" Updated & Modified Tue Apr 24 21:49:43 JST 2001
16 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
17 .\" Updated & Modified Sat Jan 5 22:25:30 JST 2002 by Yuichi SATO
19 .\"WORD: configuration 設定
24 .TH DIR_COLORS 5 2001-12-26 "GNU" "Linux User Manual"
27 .\"O dir_colors \- configuration file for dircolors(1)
28 dir_colors \- dircolors(1) の設定ファイル
33 .\"O uses the environment variable
35 .\"O to determine the colors in which the filenames are to be displayed.
40 を使い、ファイル名を何色で表示するかを決定する。
41 .\"O This environment variable is usually set by a command like
44 .\"O eval \`dircolors some_path/dir_colors\`
47 .\"O found in a system default shell initialization file, like
50 .\"O .IR /etc/csh.cshrc .
52 .\"O .BR dircolors (1).)
56 eval \`dircolors some_path/dir_colors\`
64 といったシステムのシェル初期化ファイルにある。
67 .\"O Usually, the file used here is
68 .\"O .I /etc/DIR_COLORS
69 .\"O and can be overridden by a
71 .\"O file in one's home directory.
78 .\"O This configuration file consists of several statements, one per line.
79 .\"O Anything right of a hash mark (#) is treated as a comment, if the
80 .\"O hash mark is at the beginning of a line or is preceded by at least one
82 .\"O Blank lines are ignored.
83 設定ファイルは 1 行毎に書かれたステートメントで構成される。
84 ハッシュマーク (#) が行の始めにある場合や、
85 ハッシュマークの前に少なくとも 1 つの空白がある場合、
86 ハッシュマークの後ろはコメントとして扱われる。
91 .\"O section of the file consists of any statement before the first
94 .\"O Any statement in the global section of the file is
95 .\"O considered valid for all terminal types.
96 .\"O Following the global section
98 .\"O .I terminal-specific
99 .\"O sections, preceded by one or more
101 .\"O statements which specify the terminal types (as given by the
103 .\"O environment variable) the following declarations apply to.
104 .\"O It is always possible to override a global declaration by a subsequent
105 .\"O terminal-specific one.
111 ステートメントより前にある任意のステートメントからなる。
112 グローバルセクションにあるステートメントは、
113 すべての端末タイプについて有効であるとみなされる。
117 各端末固有セクションの先頭には、1 つ以上の
121 ステートメントは、その後に続く宣言が適用される (環境変数
124 グローバル宣言をその後に続く端末固有の宣言で上書きすることが常に可能である。
126 .\"O The following statements are recognized; case is insignificant:
127 次のステートメントが認識される。大文字と小文字は区別されない。
129 .B TERM \fIterminal-type\fR
130 .\"O Starts a terminal-specific section and specifies which terminal it
134 .\"O statements can be used to create a section which applies for several
136 端末固有セクションを開始し、どの端末に適用するかを指定する。
141 .B COLOR yes|all|no|none|tty
142 .\"O (Slackware only; ignored by GNU
143 .\"O .BR dircolors (1).)
147 .\"O Specifies that colorization should always be enabled (\fIyes\fR or
148 .\"O \fIall\fR), never enabled (\fIno\fR or \fInone\fR), or enabled only if
149 .\"O the output is a terminal (\fItty\fR).
150 .\"O The default is \fIno\fR.
151 カラー表示を常に有効にするのか (\fIyes\fR または \fIall\fR)、
152 常に無効にするのか (\fIno\fR または \fInone\fR)、
153 出力先が端末の場合にのみ有効にするのか (\fItty\fR) を指定する。
157 .\"O (Slackware only; ignored by GNU
158 .\"O .BR dircolors (1).)
162 .\"O Specifies that eight-bit ISO 8859 characters should be enabled by
164 .\"O For compatibility reasons, this can also be specified as 1 for
165 .\"O \fIyes\fR or 0 for \fIno\fR.
166 .\"O The default is \fIno\fR.
167 デフォルトで 8 ビットの ISO 8859 文字を有効にするかを指定する。
168 互換性のため、1 で \fIyes\fR を、0 で \fIno\fR を指定することができる。
171 .B OPTIONS \fIoptions\fR
172 .\"O (Slackware only; ignored by GNU
173 .\"O .BR dircolors (1).)
177 .\"O Adds command-line options to the default
180 .\"O The options can be any valid
182 .\"O command-line options, and should include the leading minus sign.
185 .\"O does not verify the validity of these options.
192 オプションの前にはマイナス記号を置かなければならない。
194 がオプションの有効性を検証しない点に注意すること。
196 .B NORMAL \fIcolor-sequence\fR
197 .\"O Specifies the color used for normal (nonfilename) text.
198 (ファイル名でない) 通常のテキストに使われる色を指定する。
200 .B FILE \fIcolor-sequence\fR
201 .\"O Specifies the color used for a regular file.
204 .B DIR \fIcolor-sequence\fR
205 .\"O Specifies the color used for directories.
208 .B LINK \fIcolor-sequence\fR
209 .\"O Specifies the color used for a symbolic link.
210 シンボリックリンクに使われる色を指定する。
212 .B ORPHAN \fIcolor-sequence\fR
213 .\"O Specifies the color used for an orphaned symbolic link (one which
214 .\"O points to a nonexistent file).
215 .\"O If this is unspecified,
220 孤立した (存在しないファイルを指している)
221 シンボリックリンクに使われる色を指定する。
228 .B MISSING \fIcolor-sequence\fR
229 .\"O Specifies the color used for a missing file (a nonexistent file which
230 .\"O nevertheless has a symbolic link pointing to it).
231 .\"O If this is unspecified,
236 行方不明のファイル (存在しないにもかかわらず
237 シンボリックリンクが指しているファイル) に使われる色を指定する。
244 .B FIFO \fIcolor-sequence\fR
245 .\"O Specifies the color used for a FIFO (named pipe).
246 FIFO (名前付きパイプ) に使われる色を指定する。
248 .B SOCK \fIcolor-sequence\fR
249 .\"O Specifies the color used for a socket.
252 .B DOOR \fIcolor-sequence\fR
253 .\"O (Supported since fileutils 4.1)
254 .\"O Specifies the color used for a door (Solaris 2.5 and later).
255 (fileutils 4.1 以降でサポートされる)
256 door (Solaris 2.5 以降) で使われる色を指定する。
258 .B BLK \fIcolor-sequence\fR
259 .\"O Specifies the color used for a block device special file.
260 ブロックデバイススペシャルファイルに使われる色を指定する。
262 .B CHR \fIcolor-sequence\fR
263 .\"O Specifies the color used for a character device special file.
264 キャラクターデバイススペシャルファイルに使われる色を指定する。
266 .B EXEC \fIcolor-sequence\fR
267 .\"O Specifies the color used for a file with the executable attribute set.
268 実行属性が設定されているファイルに使われる色を設定する。
270 .B LEFTCODE \fIcolor-sequence\fR
273 .\"O for non-ISO\ 6429 terminals (see below).
274 ISO\ 6429 端末 (下記参照) 以外で
278 .B RIGHTCODE \fIcolor-sequence\fR
281 .\"O for non-ISO\ 6429 terminals (see below).
282 ISO\ 6429 端末 (下記参照) 以外で
286 .B ENDCODE \fIcolor-sequence\fR
289 .\"O for non-ISO\ 6429 terminals (see below).
290 ISO\ 6429 端末 (下記参照) 以外で
294 \fB*\fIextension\fR \fIcolor-sequence\fR
295 .\"O Specifies the color used for any file that ends in \fIextension\fR.
296 \fIextension\fR で終るすべてのファイルに使われる色を指定する。
298 \fB .\fIextension\fR \fIcolor-sequence\fR
299 .\"O Same as \fB*\fR.\fIextension\fR.
300 .\"O Specifies the color used for any file that
301 .\"O ends in .\fIextension\fR.
302 .\"O Note that the period is included in the
303 .\"O extension, which makes it impossible to specify an extension not
304 .\"O starting with a period, such as
309 .\"O This form should be considered obsolete.
310 \fB*\fR.\fIextension\fR と同じ。
311 \fIextension\fR で終るすべてのファイルに使われる色を指定する。
316 のようなピリオドで始まらない拡張子を指定することができない点に注意すること。
318 .\"O .SS "ISO 6429 (ANSI) Color Sequences"
319 .SS "ISO 6429 (ANSI) カラーシーケンス"
320 .\"O Most color-capable ASCII terminals today use ISO 6429 (ANSI) color sequences,
321 .\"O and many common terminals without color capability, including
323 .\"O and the widely used and cloned DEC VT100, will recognize ISO 6429 color
324 .\"O codes and harmlessly eliminate them from the output or emulate them.
326 .\"O uses ISO 6429 codes by default, assuming colorization is enabled.
328 .\"O ISO 6429 color sequences are composed of sequences of numbers
329 .\"O separated by semicolons.
330 .\"O The most common codes are:
331 最近のカラー表示可能な ASCII 端末の大部分は、
332 ISO 6429 (ANSI) カラーシーケンスを用いる。
334 や広く使われている DEC VT100 クローンを含む
336 ISO 6429 カラーコードを認識し、出力から実害なく削除するか、エミュレートする。
338 は、カラー表示が有効であることを仮定し、ISO 6429 コードをデフォルトで使う。
340 ISO 6429 カラーシーケンスは、セミコロンで区切られた数字のシーケンスで作られる。
346 .\"O 0 to restore default color
347 .\"O 1 for brighter colors
348 .\"O 4 for underlined text
349 .\"O 5 for flashing text
350 .\"O 30 for black foreground
351 .\"O 31 for red foreground
352 .\"O 32 for green foreground
353 .\"O 33 for yellow (or brown) foreground
354 .\"O 34 for blue foreground
355 .\"O 35 for purple foreground
356 .\"O 36 for cyan foreground
357 .\"O 37 for white (or gray) foreground
358 .\"O 40 for black background
359 .\"O 41 for red background
360 .\"O 42 for green background
361 .\"O 43 for yellow (or brown) background
362 .\"O 44 for blue background
363 .\"O 45 for purple background
364 .\"O 46 for cyan background
365 .\"O 47 for white (or gray) background
389 .\"O Not all commands will work on all systems or display devices.
390 システムと表示デバイスによっては、動作しないコマンドもある。
393 .\"O uses the following defaults:
400 .\"O \fBNORMAL\fR 0 Normal (nonfilename) text
401 .\"O \fBFILE\fR 0 Regular file
402 .\"O \fBDIR\fR 32 Directory
403 .\"O \fBLINK\fR 36 Symbolic link
404 .\"O \fBORPHAN\fR undefined Orphaned symbolic link
405 .\"O \fBMISSING\fR undefined Missing file
406 .\"O \fBFIFO\fR 31 Named pipe (FIFO)
407 .\"O \fBSOCK\fR 33 Socket
408 .\"O \fBBLK\fR 44;37 Block device
409 .\"O \fBCHR\fR 44;37 Character device
410 .\"O \fBEXEC\fR 35 Executable file
411 \fBNORMAL\fR 0 (ファイル名でない) 通常のテキスト
414 \fBLINK\fR 36 シンボリックリンク
415 \fBORPHAN\fR 未定義 孤立したシンボリックリンク
416 \fBMISSING\fR 未定義 行方不明のファイル
417 \fBFIFO\fR 31 名前付きパイプ (FIFO)
419 \fBBLK\fR 44;37 ブロックデバイス
420 \fBCHR\fR 44;37 キャラクターデバイス
425 .\"O A few terminal programs do not recognize the default
427 .\"O If all text gets colorized after you do a directory
428 .\"O listing, change the
432 .\"O codes to the numerical codes for your normal foreground and background
434 デフォルトの設定を完全に認識できない端末プログラムも少数存在する。
435 ディレクトリをリストした後にすべてのテキストがカラー表示されたなら、
439 のコードを通常の前景色と背景色のための数値コードに変更すること。
440 .\"O .SS "Other Terminal Types (Advanced Configuration)"
441 .SS "その他の端末タイプ (高度な設定)"
442 .\"O If you have a color-capable (or otherwise highlighting) terminal (or
443 .\"O printer!) which uses a different set of codes, you can still generate
444 .\"O a suitable setup.
445 .\"O To do so, you will have to use the
451 カラー表示可能 (またはハイライト表示可能) だが、
452 異なるコードセットを使う端末 (あるいはプリンター!) を持っている場合でも、
460 .\"O When writing out a filename,
462 .\"O generates the following output sequence:
470 .\"O is the color sequence that depends on the type or name of file.
473 .\"O is undefined, the sequence
474 .\"O .B "LEFTCODE NORMAL RIGHTCODE"
475 .\"O will be used instead.
476 .\"O The purpose of the left- and rightcodes is
477 .\"O merely to reduce the amount of typing necessary (and to hide ugly
478 .\"O escape codes away from the user).
479 .\"O If they are not appropriate for
480 .\"O your terminal, you can eliminate them by specifying the respective
481 .\"O keyword on a line by itself.
493 はファイルのタイプや名前に依存したカラーシーケンスである。
496 .B "LEFTCODE NORMAL RIGHTCODE"
498 leftcode と rightcode の目的は、単に必要な打ち込む回数を減らす
499 (さらに、見苦しいエスケープコードをユーザーに隠す) ことにある。
500 シーケンスがその端末にとって適切でない場合、
501 行内のそれぞれのキーワード自身を指定して削除することができる。
506 .\"O is defined in the global section of the setup file, it
508 .\"O be undefined in a terminal-specific section of the file.
511 .\"O definition will have no effect.
514 .\"O can, however, be specified, which would have the same effect.
517 が設定ファイルのグローバルセクションで定義されている場合、
518 ファイルの端末固有セクションで未定義にすることは
522 の定義が何も影響を及ぼさないことを意味する。
525 を指定することで同じ効果を得ることができる。
526 .\"O .SS "Escape Sequences"
528 .\"O To specify control- or blank characters in the color sequences or
529 .\"O filename extensions, either C-style \e-escaped notation or
530 .\"O .BR stty \-style
531 .\"O ^-notation can be used.
532 .\"O The C-style notation
533 .\"O includes the following characters:
534 カラーシーケンスやファイル名の拡張子で制御文字やブランク文字を指定するために、
535 C 言語スタイルの \e エスケープ表記と
537 スタイルの ^ 表記の両方を使うことができる。
538 C 言語スタイルの表記には以下の文字が含まれる。
543 .\"O \fB\ea\fR Bell (ASCII 7)
544 .\"O \fB\eb\fR Backspace (ASCII 8)
545 .\"O \fB\ee\fR Escape (ASCII 27)
546 .\"O \fB\ef\fR Form feed (ASCII 12)
547 .\"O \fB\en\fR Newline (ASCII 10)
548 .\"O \fB\er\fR Carriage Return (ASCII 13)
549 .\"O \fB\et\fR Tab (ASCII 9)
550 .\"O \fB\ev\fR Vertical Tab (ASCII 11)
551 .\"O \fB\e?\fR Delete (ASCII 127)
552 .\"O \fB\e\fInnn\fR Any character (octal notation)
553 .\"O \fB\ex\fInnn\fR Any character (hexadecimal notation)
555 .\"O .\"O \fB\e\e\fR Backslash (\e)
556 .\"O \fB\e^\fR Caret (^)
557 .\"O \fB\e#\fR Hash mark (#)
558 \fB\ea\fR ベル (ASCII 7)
559 \fB\eb\fR バックスペース (ASCII 8)
560 \fB\ee\fR エスケープ (ASCII 27)
561 \fB\ef\fR フォームフィード (ASCII 12)
562 \fB\en\fR 改行 (ASCII 10)
563 \fB\er\fR キャリッジリターン (ASCII 13)
564 \fB\et\fR タブ (ASCII 9)
565 \fB\ev\fR 垂直タブ (ASCII 11)
566 \fB\e?\fR デリート (ASCII 127)
567 \fB\e\fInnn\fR (8 進数表記の) 任意の文字
568 \fB\ex\fInnn\fR (16 進数表記の) 任意の文字
570 \fB\e\e\fR バックスラッシュ (\e)
572 \fB\e#\fR ハッシュマーク (#)
576 .\"O Please note that escapes are necessary to enter a space, backslash,
577 .\"O caret, or any control character anywhere in the string, as well as a
578 .\"O hash mark as the first character.
579 ハッシュマークを始めの文字として入力するときと同様に、
580 スペース・バックスラッシュ・キャレット・制御文字を文字列の任意の部分に
581 入力するためには、エスケープが必要であることに注意すること。
586 .\"O System-wide configuration file.
590 .\"O Per-user configuration file.
594 .\"O This page describes the
596 .\"O file format as used in the fileutils-4.1 package;
597 .\"O other versions may differ slightly.
598 このページは fileutils-4.1 パッケージで使われている
601 その他のバージョンでは少し違いがあるかも知れない。
607 .\"O definitions, which are used by ISO 6429 terminals are:
612 のデフォルトの定義は、次のようになっている。