Linux Commands: Color setup for `ls', outputs a sequence of shell commands to set up the terminal for color output from `ls' (and `dir', etc.).


dircolors-Linux Command

dircolors command- Color setup for `ls', outputs a sequence of shell commands to set up the terminal for color output from `ls' (and `dir', etc.).

Syntax: eval `dircolors [-abckstzPS] [filename]`

dircolors -v

Description: dircolors is a program to generate a setup for the color
version of GNU ls. The setup consists of an LS_COLORS
environment variable and a set of aliases. For sh and
ash, which lack aliases, shell functions are substituted.
The dircolors command will generally be run from the
user's .profile, .cshrc or equivalent file, or the system-
wide equivalents.

OPTIONS
-a, -s Assume the user is using a Bourne-style shell which
does not support aliasing. This is default if the
base name of the environment variable SHELL is sh
or ash. Instead a shell function is used. If the
-P option is also used, this function will need to
spawn a subshell; this is slow and should be
avoided if possible.

-b,-k Assume the user is using a Bourne-style shell that
supports Korn-style aliasing. This is the default
if the base name of the environment variable SHELL
is bash or ksh. You may want to specify this
option explicitly if your sh is really a more
advanced shell, which does support Korn-style
aliasing.

-z Assume the user is using a Bourne-style shell that
supports Korn-style aliasing, but differs between
string and list environment variables. This is the
default is the base name of the environment vari-
able SHELL is zsh.

-c, -t Assume the user is using a C-style shell. This is
the default if the base name of the environment
variable SHELL is csh or tcsh.

-P Do not seek the path to find the location of the ls
binary. By default, dircolors will find the loca-
tion of the ls binary at the time it is run, and
include it in the shell function or alias, which
for most shells results in a significant speed
improvement.

-S Set colorization to no if the terminal does not
occur in any TERM statement, even if there is a
COLOR statement in the global section of the file.

 

Example:

Related:

Other Linux Commands:
alias , break , builtin , cal , case , cat , cd , cfdisk , chgrp , chmod , chown , chroot , cksum , cmp , comm , continue , cp , cron , crontab , csplit , cut , date , dc , dd , declare , df , diff , diff3 , dir , dircolors , dirname , dirs , du , echo , egrep , enable , env , eval , exec , expand , export , expr , factor , false , fdformat , fdisk , fgrep , find , fmt , fold , for , fsck , function , getopts , hash , hashcharacter , head , history , hostname , id , if , import , install , join , kill , less , let , ln , local , locate , logname , logout , lpc , lpr , lprm , ls , m4 , man , mbadblocks , mkdir , mkfifo , mknod , more , mount , mtools , mv , nice , nl , nohup , passwd , paste , period , popd , pr , printf , ps , pushd , pwd , quota , quotacheck , quotactl , ram , rcp , read , readonly , return , rm , rmdir , rsync , Run , sdiff , sed , select , seq , set , shift , shopt , shutdown , sleep , sort , split , su , sum , symlink , sync , tac , tail , tar , tee , Test , time , times , top , touch , tr , traceroute , true , tsort , tty , Type , ulimit , umask , uname , Unexpand , uniq , units , unset , unshar , until , useradd , usermod , users , uuencode , watch , wc , whereis , which , while , who , xargs , yes ,
Live2Support.com :
Product - Benefits - Features - How Does it Works - Pricing - SSL Certificates - Signup - Contactus - Login - Submit Resources