2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" manpage for /etc/dir_colors, config file for dircolors(1)
|
|
|
|
.\" extracted from color-ls 3.12.0.3 dircolors(1) manpage
|
|
|
|
.\"
|
|
|
|
.\" This file may be copied under the conditions described
|
|
|
|
.\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
|
|
|
|
.\" that should have been distributed together with this file.
|
|
|
|
.\"
|
|
|
|
.\" Modified Sat Dec 22 22:25:33 2001 by Martin Schulze <joey@infodrom.org>
|
|
|
|
.\"
|
2007-05-18 09:21:38 +00:00
|
|
|
.TH DIR_COLORS 5 2001-12-26 "GNU" "Linux User Manual"
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH NAME
|
|
|
|
dir_colors \- configuration file for dircolors(1)
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The program
|
|
|
|
.BR ls (1)
|
|
|
|
uses the environment variable
|
|
|
|
.B LS_COLORS
|
|
|
|
to determine the colors in which the filenames are to be displayed.
|
|
|
|
This environment variable is usually set by a command like
|
|
|
|
|
|
|
|
.RS
|
2008-06-05 12:26:22 +00:00
|
|
|
eval \`dircolors some_path/dir_colors\`
|
2004-11-03 13:51:07 +00:00
|
|
|
.RE
|
|
|
|
|
|
|
|
found in a system default shell initialization file, like
|
|
|
|
.I /etc/profile
|
|
|
|
or
|
|
|
|
.IR /etc/csh.cshrc .
|
|
|
|
(See also
|
|
|
|
.BR dircolors (1).)
|
|
|
|
Usually, the file used here is
|
|
|
|
.I /etc/DIR_COLORS
|
|
|
|
and can be overridden by a
|
|
|
|
.I .dir_colors
|
|
|
|
file in one's home directory.
|
|
|
|
.PP
|
|
|
|
This configuration file consists of several statements, one per line.
|
|
|
|
Anything right of a hash mark (#) is treated as a comment, if the
|
|
|
|
hash mark is at the beginning of a line or is preceded by at least one
|
2007-04-12 22:42:49 +00:00
|
|
|
whitespace.
|
|
|
|
Blank lines are ignored.
|
2004-11-03 13:51:07 +00:00
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.I global
|
|
|
|
section of the file consists of any statement before the first
|
|
|
|
.B TERM
|
2007-04-12 22:42:49 +00:00
|
|
|
statement.
|
|
|
|
Any statement in the global section of the file is
|
|
|
|
considered valid for all terminal types.
|
|
|
|
Following the global section
|
|
|
|
is one or more
|
2004-11-03 13:51:07 +00:00
|
|
|
.I terminal-specific
|
|
|
|
sections, preceded by one or more
|
|
|
|
.B TERM
|
|
|
|
statements which specify the terminal types (as given by the
|
|
|
|
.B TERM
|
2007-04-12 22:42:49 +00:00
|
|
|
environment variable) the following declarations apply to.
|
|
|
|
It is always possible to override a global declaration by a subsequent
|
2004-11-03 13:51:07 +00:00
|
|
|
terminal-specific one.
|
|
|
|
.PP
|
|
|
|
The following statements are recognized; case is insignificant:
|
|
|
|
.TP
|
|
|
|
.B TERM \fIterminal-type\fR
|
|
|
|
Starts a terminal-specific section and specifies which terminal it
|
2007-04-12 22:42:49 +00:00
|
|
|
applies to.
|
|
|
|
Multiple
|
2004-11-03 13:51:07 +00:00
|
|
|
.B TERM
|
|
|
|
statements can be used to create a section which applies for several
|
|
|
|
terminal types.
|
|
|
|
.TP
|
|
|
|
.B COLOR yes|all|no|none|tty
|
|
|
|
(Slackware only; ignored by GNU
|
|
|
|
.BR dircolors (1).)
|
|
|
|
Specifies that colorization should always be enabled (\fIyes\fR or
|
|
|
|
\fIall\fR), never enabled (\fIno\fR or \fInone\fR), or enabled only if
|
2007-04-12 22:42:49 +00:00
|
|
|
the output is a terminal (\fItty\fR).
|
|
|
|
The default is \fIno\fR.
|
2004-11-03 13:51:07 +00:00
|
|
|
.TP
|
|
|
|
.B EIGHTBIT yes|no
|
|
|
|
(Slackware only; ignored by GNU
|
|
|
|
.BR dircolors (1).)
|
|
|
|
Specifies that eight-bit ISO 8859 characters should be enabled by
|
2007-04-12 22:42:49 +00:00
|
|
|
default.
|
|
|
|
For compatibility reasons, this can also be specified as 1 for
|
|
|
|
\fIyes\fR or 0 for \fIno\fR.
|
|
|
|
The default is \fIno\fR.
|
2004-11-03 13:51:07 +00:00
|
|
|
.TP
|
|
|
|
.B OPTIONS \fIoptions\fR
|
|
|
|
(Slackware only; ignored by GNU
|
|
|
|
.BR dircolors (1).)
|
2008-03-19 08:37:35 +00:00
|
|
|
Adds command-line options to the default
|
2004-11-03 13:51:07 +00:00
|
|
|
.B ls
|
2007-04-12 22:42:49 +00:00
|
|
|
command line.
|
|
|
|
The options can be any valid
|
2004-11-03 13:51:07 +00:00
|
|
|
.B ls
|
2008-03-19 08:37:35 +00:00
|
|
|
command-line options, and should include the leading minus sign.
|
2008-05-08 11:14:17 +00:00
|
|
|
Note that
|
2004-11-03 13:51:07 +00:00
|
|
|
.B dircolors
|
|
|
|
does not verify the validity of these options.
|
|
|
|
.TP
|
|
|
|
.B NORMAL \fIcolor-sequence\fR
|
accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 17:20:12 +00:00
|
|
|
Specifies the color used for normal (nonfilename) text.
|
2004-11-03 13:51:07 +00:00
|
|
|
.TP
|
|
|
|
.B FILE \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for a regular file.
|
|
|
|
.TP
|
|
|
|
.B DIR \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for directories.
|
|
|
|
.TP
|
|
|
|
.B LINK \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for a symbolic link.
|
|
|
|
.TP
|
|
|
|
.B ORPHAN \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for an orphaned symbolic link (one which
|
2007-04-12 22:42:49 +00:00
|
|
|
points to a nonexistent file).
|
|
|
|
If this is unspecified,
|
2004-11-03 13:51:07 +00:00
|
|
|
.B ls
|
|
|
|
will use the
|
|
|
|
.B LINK
|
|
|
|
color instead.
|
|
|
|
.TP
|
|
|
|
.B MISSING \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for a missing file (a nonexistent file which
|
2007-04-12 22:42:49 +00:00
|
|
|
nevertheless has a symbolic link pointing to it).
|
|
|
|
If this is unspecified,
|
2004-11-03 13:51:07 +00:00
|
|
|
.B ls
|
|
|
|
will use the
|
|
|
|
.B FILE
|
|
|
|
color instead.
|
|
|
|
.TP
|
|
|
|
.B FIFO \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for a FIFO (named pipe).
|
|
|
|
.TP
|
|
|
|
.B SOCK \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for a socket.
|
|
|
|
.TP
|
|
|
|
.B DOOR \fIcolor-sequence\fR
|
2006-12-27 04:29:26 +00:00
|
|
|
(Supported since fileutils 4.1)
|
2004-11-03 13:51:07 +00:00
|
|
|
Specifies the color used for a door (Solaris 2.5 and later).
|
|
|
|
.TP
|
|
|
|
.B BLK \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for a block device special file.
|
|
|
|
.TP
|
|
|
|
.B CHR \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for a character device special file.
|
|
|
|
.TP
|
|
|
|
.B EXEC \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for a file with the executable attribute set.
|
|
|
|
.TP
|
|
|
|
.B LEFTCODE \fIcolor-sequence\fR
|
|
|
|
Specifies the
|
|
|
|
.I "left code"
|
|
|
|
for non-ISO\ 6429 terminals (see below).
|
|
|
|
.TP
|
|
|
|
.B RIGHTCODE \fIcolor-sequence\fR
|
|
|
|
Specifies the
|
|
|
|
.I "right code"
|
|
|
|
for non-ISO\ 6429 terminals (see below).
|
|
|
|
.TP
|
|
|
|
.B ENDCODE \fIcolor-sequence\fR
|
|
|
|
Specifies the
|
|
|
|
.I "end code"
|
|
|
|
for non-ISO\ 6429 terminals (see below).
|
|
|
|
.TP
|
|
|
|
\fB*\fIextension\fR \fIcolor-sequence\fR
|
|
|
|
Specifies the color used for any file that ends in \fIextension\fR.
|
|
|
|
.TP
|
|
|
|
\fB .\fIextension\fR \fIcolor-sequence\fR
|
2007-04-12 22:42:49 +00:00
|
|
|
Same as \fB*\fR.\fIextension\fR.
|
|
|
|
Specifies the color used for any file that
|
|
|
|
ends in .\fIextension\fR.
|
|
|
|
Note that the period is included in the
|
2004-11-03 13:51:07 +00:00
|
|
|
extension, which makes it impossible to specify an extension not
|
|
|
|
starting with a period, such as
|
|
|
|
.B ~
|
|
|
|
for
|
|
|
|
.B emacs
|
2007-04-12 22:42:49 +00:00
|
|
|
backup files.
|
|
|
|
This form should be considered obsolete.
|
intro.1, time.1, _syscall.2, accept.2, brk.2, capget.2, faccessat.2, futimesat.2, gethostname.2, intro.2, ioprio_set.2, kill.2, madvise.2, mlock.2, mount.2, msgget.2, perf_event_open.2, poll.2, readv.2, sched_rr_get_interval.2, sched_setscheduler.2, select.2, select_tut.2, shmget.2, stat.2, timer_create.2, ustat.2, vfork.2, wait.2, alloca.3, atexit.3, catopen.3, crypt.3, dbopen.3, fenv.3, fopen.3, getaddrinfo_a.3, gethostbyname.3, getutent.3, intro.3, login.3, mallopt.3, queue.3, regex.3, sigpause.3, sigsetops.3, stdio.3, strftime.3, strptime.3, sysconf.3, ttyslot.3, undocumented.3, cciss.4, console_codes.4, hpsa.4, initrd.4, intro.4, rtc.4, st.4, tty_ioctl.4, wavelan.4, acct.5, charmap.5, dir_colors.5, hosts.5, intro.5, termcap.5, utmp.5, intro.6, armscii-8.7, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, ddp.7, epoll.7, glob.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man-pages.7, man.7, math_error.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, pthreads.7, raw.7, rtnetlink.7, signal.7, socket.7, spufs.7, svipc.7, tcp.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, intro.8: Global fix: use consistent capitalization in .SS headings
Capitalization in .SS sections across pages (and sometimes even
within a single page) is wildly inconsistent. Make it consistent.
Capitalize first word in heading, but otherwise use lower case,
except where English usage (e.g., proper nouns) or programming
language requirements (e.g., identifier names) dictate otherwise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 14:08:38 +00:00
|
|
|
.SS "ISO 6429 (ANSI) color sequences"
|
2004-11-03 13:51:07 +00:00
|
|
|
Most color-capable ASCII terminals today use ISO 6429 (ANSI) color sequences,
|
|
|
|
and many common terminals without color capability, including
|
|
|
|
.B xterm
|
|
|
|
and the widely used and cloned DEC VT100, will recognize ISO 6429 color
|
|
|
|
codes and harmlessly eliminate them from the output or emulate them.
|
|
|
|
.B ls
|
|
|
|
uses ISO 6429 codes by default, assuming colorization is enabled.
|
|
|
|
|
|
|
|
ISO 6429 color sequences are composed of sequences of numbers
|
2007-04-12 22:42:49 +00:00
|
|
|
separated by semicolons.
|
|
|
|
The most common codes are:
|
2004-11-03 13:51:07 +00:00
|
|
|
.sp
|
|
|
|
.RS +.2i
|
|
|
|
.ta 1.0i
|
|
|
|
.nf
|
|
|
|
0 to restore default color
|
2007-04-12 22:42:49 +00:00
|
|
|
1 for brighter colors
|
2004-11-03 13:51:07 +00:00
|
|
|
4 for underlined text
|
|
|
|
5 for flashing text
|
|
|
|
30 for black foreground
|
|
|
|
31 for red foreground
|
|
|
|
32 for green foreground
|
|
|
|
33 for yellow (or brown) foreground
|
|
|
|
34 for blue foreground
|
|
|
|
35 for purple foreground
|
|
|
|
36 for cyan foreground
|
|
|
|
37 for white (or gray) foreground
|
|
|
|
40 for black background
|
|
|
|
41 for red background
|
|
|
|
42 for green background
|
|
|
|
43 for yellow (or brown) background
|
|
|
|
44 for blue background
|
|
|
|
45 for purple background
|
|
|
|
46 for cyan background
|
|
|
|
47 for white (or gray) background
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.sp
|
|
|
|
Not all commands will work on all systems or display devices.
|
|
|
|
.PP
|
|
|
|
.B ls
|
|
|
|
uses the following defaults:
|
|
|
|
.sp
|
|
|
|
.RS +.2i
|
|
|
|
.ta 1.0i 2.5i
|
|
|
|
.nf
|
accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 17:20:12 +00:00
|
|
|
\fBNORMAL\fR 0 Normal (nonfilename) text
|
2004-11-03 13:51:07 +00:00
|
|
|
\fBFILE\fR 0 Regular file
|
|
|
|
\fBDIR\fR 32 Directory
|
|
|
|
\fBLINK\fR 36 Symbolic link
|
2005-06-24 14:17:21 +00:00
|
|
|
\fBORPHAN\fR undefined Orphaned symbolic link
|
2004-11-03 13:51:07 +00:00
|
|
|
\fBMISSING\fR undefined Missing file
|
|
|
|
\fBFIFO\fR 31 Named pipe (FIFO)
|
|
|
|
\fBSOCK\fR 33 Socket
|
|
|
|
\fBBLK\fR 44;37 Block device
|
|
|
|
\fBCHR\fR 44;37 Character device
|
|
|
|
\fBEXEC\fR 35 Executable file
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.sp
|
2007-04-12 22:42:49 +00:00
|
|
|
A few terminal programs do not recognize the default
|
|
|
|
properly.
|
|
|
|
If all text gets colorized after you do a directory
|
2004-11-03 13:51:07 +00:00
|
|
|
listing, change the
|
|
|
|
.B NORMAL
|
|
|
|
and
|
|
|
|
.B FILE
|
|
|
|
codes to the numerical codes for your normal foreground and background
|
|
|
|
colors.
|
intro.1, time.1, _syscall.2, accept.2, brk.2, capget.2, faccessat.2, futimesat.2, gethostname.2, intro.2, ioprio_set.2, kill.2, madvise.2, mlock.2, mount.2, msgget.2, perf_event_open.2, poll.2, readv.2, sched_rr_get_interval.2, sched_setscheduler.2, select.2, select_tut.2, shmget.2, stat.2, timer_create.2, ustat.2, vfork.2, wait.2, alloca.3, atexit.3, catopen.3, crypt.3, dbopen.3, fenv.3, fopen.3, getaddrinfo_a.3, gethostbyname.3, getutent.3, intro.3, login.3, mallopt.3, queue.3, regex.3, sigpause.3, sigsetops.3, stdio.3, strftime.3, strptime.3, sysconf.3, ttyslot.3, undocumented.3, cciss.4, console_codes.4, hpsa.4, initrd.4, intro.4, rtc.4, st.4, tty_ioctl.4, wavelan.4, acct.5, charmap.5, dir_colors.5, hosts.5, intro.5, termcap.5, utmp.5, intro.6, armscii-8.7, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, ddp.7, epoll.7, glob.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man-pages.7, man.7, math_error.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, pthreads.7, raw.7, rtnetlink.7, signal.7, socket.7, spufs.7, svipc.7, tcp.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, intro.8: Global fix: use consistent capitalization in .SS headings
Capitalization in .SS sections across pages (and sometimes even
within a single page) is wildly inconsistent. Make it consistent.
Capitalize first word in heading, but otherwise use lower case,
except where English usage (e.g., proper nouns) or programming
language requirements (e.g., identifier names) dictate otherwise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 14:08:38 +00:00
|
|
|
.SS "Other terminal types (advanced configuration)"
|
2004-11-03 13:51:07 +00:00
|
|
|
If you have a color-capable (or otherwise highlighting) terminal (or
|
|
|
|
printer!) which uses a different set of codes, you can still generate
|
2007-04-12 22:42:49 +00:00
|
|
|
a suitable setup.
|
|
|
|
To do so, you will have to use the
|
2004-11-03 13:51:07 +00:00
|
|
|
.BR LEFTCODE ,
|
|
|
|
.BR RIGHTCODE ,
|
|
|
|
and
|
2007-09-20 16:26:31 +00:00
|
|
|
.B ENDCODE
|
2004-11-03 13:51:07 +00:00
|
|
|
definitions.
|
|
|
|
.PP
|
|
|
|
When writing out a filename,
|
|
|
|
.B ls
|
|
|
|
generates the following output sequence:
|
|
|
|
.B LEFTCODE
|
|
|
|
.I typecode
|
|
|
|
.B RIGHTCODE
|
|
|
|
.I filename
|
|
|
|
.BR ENDCODE ,
|
|
|
|
where the
|
|
|
|
.I typecode
|
2007-04-12 22:42:49 +00:00
|
|
|
is the color sequence that depends on the type or name of file.
|
|
|
|
If the
|
2004-11-03 13:51:07 +00:00
|
|
|
.B ENDCODE
|
|
|
|
is undefined, the sequence
|
|
|
|
.B "LEFTCODE NORMAL RIGHTCODE"
|
2007-04-12 22:42:49 +00:00
|
|
|
will be used instead.
|
|
|
|
The purpose of the left- and rightcodes is
|
2004-11-03 13:51:07 +00:00
|
|
|
merely to reduce the amount of typing necessary (and to hide ugly
|
2007-04-12 22:42:49 +00:00
|
|
|
escape codes away from the user).
|
|
|
|
If they are not appropriate for
|
2004-11-03 13:51:07 +00:00
|
|
|
your terminal, you can eliminate them by specifying the respective
|
|
|
|
keyword on a line by itself.
|
|
|
|
.PP
|
|
|
|
.B NOTE:
|
|
|
|
If the
|
|
|
|
.B ENDCODE
|
|
|
|
is defined in the global section of the setup file, it
|
|
|
|
.I cannot
|
2007-04-12 22:42:49 +00:00
|
|
|
be undefined in a terminal-specific section of the file.
|
|
|
|
This means any
|
2004-11-03 13:51:07 +00:00
|
|
|
.B NORMAL
|
2007-04-12 22:42:49 +00:00
|
|
|
definition will have no effect.
|
|
|
|
A different
|
2004-11-03 13:51:07 +00:00
|
|
|
.B ENDCODE
|
|
|
|
can, however, be specified, which would have the same effect.
|
intro.1, time.1, _syscall.2, accept.2, brk.2, capget.2, faccessat.2, futimesat.2, gethostname.2, intro.2, ioprio_set.2, kill.2, madvise.2, mlock.2, mount.2, msgget.2, perf_event_open.2, poll.2, readv.2, sched_rr_get_interval.2, sched_setscheduler.2, select.2, select_tut.2, shmget.2, stat.2, timer_create.2, ustat.2, vfork.2, wait.2, alloca.3, atexit.3, catopen.3, crypt.3, dbopen.3, fenv.3, fopen.3, getaddrinfo_a.3, gethostbyname.3, getutent.3, intro.3, login.3, mallopt.3, queue.3, regex.3, sigpause.3, sigsetops.3, stdio.3, strftime.3, strptime.3, sysconf.3, ttyslot.3, undocumented.3, cciss.4, console_codes.4, hpsa.4, initrd.4, intro.4, rtc.4, st.4, tty_ioctl.4, wavelan.4, acct.5, charmap.5, dir_colors.5, hosts.5, intro.5, termcap.5, utmp.5, intro.6, armscii-8.7, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, ddp.7, epoll.7, glob.7, intro.7, ip.7, ipv6.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, koi8-r.7, koi8-u.7, man-pages.7, man.7, math_error.7, netlink.7, numa.7, packet.7, path_resolution.7, pipe.7, pthreads.7, raw.7, rtnetlink.7, signal.7, socket.7, spufs.7, svipc.7, tcp.7, time.7, udp.7, udplite.7, unicode.7, unix.7, uri.7, utf-8.7, x25.7, intro.8: Global fix: use consistent capitalization in .SS headings
Capitalization in .SS sections across pages (and sometimes even
within a single page) is wildly inconsistent. Make it consistent.
Capitalize first word in heading, but otherwise use lower case,
except where English usage (e.g., proper nouns) or programming
language requirements (e.g., identifier names) dictate otherwise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-24 14:08:38 +00:00
|
|
|
.SS "Escape sequences"
|
2004-11-03 13:51:07 +00:00
|
|
|
To specify control- or blank characters in the color sequences or
|
time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Revert 9f8e673e623d (whose global s%\\e%\\\\% caused problems)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-26 21:56:54 +00:00
|
|
|
filename extensions, either C-style \e-escaped notation or
|
2005-07-06 07:41:37 +00:00
|
|
|
.BR stty \-style
|
2007-04-12 22:42:49 +00:00
|
|
|
^-notation can be used.
|
|
|
|
The C-style notation
|
2004-11-03 13:51:07 +00:00
|
|
|
includes the following characters:
|
|
|
|
.sp
|
|
|
|
.RS +.2i
|
|
|
|
.ta 1.0i
|
|
|
|
.nf
|
time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Revert 9f8e673e623d (whose global s%\\e%\\\\% caused problems)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-26 21:56:54 +00:00
|
|
|
\fB\ea\fR Bell (ASCII 7)
|
|
|
|
\fB\eb\fR Backspace (ASCII 8)
|
|
|
|
\fB\ee\fR Escape (ASCII 27)
|
|
|
|
\fB\ef\fR Form feed (ASCII 12)
|
|
|
|
\fB\en\fR Newline (ASCII 10)
|
|
|
|
\fB\er\fR Carriage Return (ASCII 13)
|
|
|
|
\fB\et\fR Tab (ASCII 9)
|
|
|
|
\fB\ev\fR Vertical Tab (ASCII 11)
|
|
|
|
\fB\e?\fR Delete (ASCII 127)
|
|
|
|
\fB\e\fInnn\fR Any character (octal notation)
|
|
|
|
\fB\ex\fInnn\fR Any character (hexadecimal notation)
|
|
|
|
\fB\e_\fR Space
|
|
|
|
\fB\e\e\fR Backslash (\e)
|
|
|
|
\fB\e^\fR Caret (^)
|
|
|
|
\fB\e#\fR Hash mark (#)
|
2004-11-03 13:51:07 +00:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.sp
|
|
|
|
Please note that escapes are necessary to enter a space, backslash,
|
|
|
|
caret, or any control character anywhere in the string, as well as a
|
|
|
|
hash mark as the first character.
|
2007-05-19 04:30:20 +00:00
|
|
|
.SH FILES
|
|
|
|
.TP
|
|
|
|
.I /etc/DIR_COLORS
|
|
|
|
System-wide configuration file.
|
|
|
|
.TP
|
|
|
|
.I ~/.dir_colors
|
|
|
|
Per-user configuration file.
|
|
|
|
.PP
|
|
|
|
This page describes the
|
|
|
|
.B dir_colors
|
|
|
|
file format as used in the fileutils-4.1 package;
|
|
|
|
other versions may differ slightly.
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH NOTES
|
|
|
|
The default
|
|
|
|
.B LEFTCODE
|
|
|
|
and
|
|
|
|
.B RIGHTCODE
|
|
|
|
definitions, which are used by ISO 6429 terminals are:
|
|
|
|
.sp
|
|
|
|
.RS +.2i
|
|
|
|
.ta 1.0i
|
|
|
|
.nf
|
time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Revert 9f8e673e623d (whose global s%\\e%\\\\% caused problems)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-26 21:56:54 +00:00
|
|
|
\fBLEFTCODE\fR \ee[
|
2004-11-03 13:51:07 +00:00
|
|
|
\fBRIGHTCODE\fR m
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.sp
|
|
|
|
The default
|
|
|
|
.B ENDCODE
|
|
|
|
is undefined.
|
2007-05-16 18:25:50 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR dircolors (1),
|
|
|
|
.BR ls (1),
|
|
|
|
.BR stty (1),
|
|
|
|
.BR xterm (1)
|