How do I set more dircolors, redhat or FC? - Linux

This is a discussion on How do I set more dircolors, redhat or FC? - Linux ; I use redhat 9, will install FC3 next week. I like the colored output from ls but iso files are not colored. I would like for them to be colored like compressed files, like zip and tgz, in red (iso ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: How do I set more dircolors, redhat or FC?

  1. How do I set more dircolors, redhat or FC?

    I use redhat 9, will install FC3 next week. I like the colored output from
    ls but iso files are not colored. I would like for them to be colored like
    compressed files, like zip and tgz, in red (iso files are compressed files,
    right?). Where do I add this customization? Running "dircolors" from a
    console shows the colors:

    [ohmster@ohmster FC3]$ dircolors
    LS_COLORS='no=00:fi=00:di=01;34:ln=01;36i=40;33:so=01;35:do=01;35:bd=
    40;33;01:cd=40;33;01r=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=
    01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;3 1:*.Z=01;31:*.gz=01;31:
    *.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*. jpg=01;35:*.jpeg=01;35:
    *.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*. ppm=01;35:*.tga=01;35:
    *.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:* .png=01;35:*.mpg=01;35:
    *.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*. dl=01;35:*.xcf=01;35:
    *.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:';
    export LS_COLORS
    [ohmster@ohmster FC3]$

    But how dows one edit this information, for everyone, systemwide? Thanks.

    --
    ~Ohmster
    ohmster at newsguy dot com

  2. Re: How do I set more dircolors, redhat or FC?

    Ohmster wrote:

    > I use redhat 9, will install FC3 next week. I like the colored output from
    > ls but iso files are not colored. I would like for them to be colored like
    > compressed files, like zip and tgz, in red (iso files are compressed files,
    > right?). Where do I add this customization? Running "dircolors" from a
    > console shows the colors:
    >
    > [ohmster@ohmster FC3]$ dircolors
    > LS_COLORS='no=00:fi=00:di=01;34:ln=01;36i=40;33:so=01;35:do=01;35:bd=
    > 40;33;01:cd=40;33;01r=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=
    > 01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;3 1:*.Z=01;31:*.gz=01;31:
    > *.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*. jpg=01;35:*.jpeg=01;35:
    > *.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*. ppm=01;35:*.tga=01;35:
    > *.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:* .png=01;35:*.mpg=01;35:
    > *.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*. dl=01;35:*.xcf=01;35:
    > *.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:';
    > export LS_COLORS
    > [ohmster@ohmster FC3]$
    >
    > But how dows one edit this information, for everyone, systemwide? Thanks.


    Doing a FIND on /etc, I found:

    /etc/profile.d/colorls.csh
    /etc/profile.d/colorls.sh

    These contained:

    eval `dircolors -c /etc/DIR_COLORS`
    and
    eval `dircolors --sh /etc/DIR_COLORS`

    so try looking in /etc/DIR_COLORS. (Or you could repeat the process for you
    maching and see what you find.)




  3. Re: How do I set more dircolors, redhat or FC?

    Robert Newson wrote in
    news:42736FAD.9080802@bullet3.fsnet.oc.ku:

    > Doing a FIND on /etc, I found:
    >
    > /etc/profile.d/colorls.csh
    > /etc/profile.d/colorls.sh
    >
    > These contained:
    >
    > eval `dircolors -c /etc/DIR_COLORS`
    > and
    > eval `dircolors --sh /etc/DIR_COLORS`
    >
    > so try looking in /etc/DIR_COLORS. (Or you could repeat the process
    > for you maching and see what you find.)


    Wow, that did the trick. I added .iso to /etc/DIR_COLORS and got just what
    I wanted. Thanks Robert.

    --
    ~Ohmster
    ohmster at newsguy dot com

+ Reply to Thread