>I have been using redhat 5.0 , I am used to Slackware, and there are
>some things I just can't figure out.
>3) What is the command to get directory and file colors. I know it is
> ls --color. But I can't get it to work.
I didn't like this either. I think that a lot of the utilities that come with
slackware are setup better than those in redhat. color ls is one. What I did
was first install the dircolors package. However, the dircolors that comes
with redhat 5 isn't as good as the one that comes with slackware, even though
it is supposed to be a newer version. redhat also isn't setup to use it at
Then I made the file /etc/profile.d/dircolors.sh:
eval `dircolors -b /etc/DIR_COLORS`
LS_OPTIONS='--color=tty -F -T 0';
alias ls='/bin/ls $LS_OPTIONS';
alias dir='/bin/ls $LS_OPTIONS --format=vertical';
eval `dircolors -c /etc/DIR_COLORS`
setenv LS_OPTIONS '--color=tty -F -T 0';
alias ls '/bin/ls $LS_OPTIONS';
alias dir '/bin/ls $LS_OPTIONS --format=vertical';
And that was it. The slackware dircolors and ls seem to be better than those
in redhat, my slackware dircolors program automatically looks for the file
~/.dircolors and if it doesn't find it looks for /etc/DIR_COLORS, so users can
override the system defaults. The redhat one needs to be told where to look.
The slackware one also can make output to work with more shells than redhat's.
And of course redhat doesn't setup color ls by default, which is really a
shame since most people who see it think it's great, but it was a pain for me
to setup it up like this, I don't see how a newbie could possible hope to do
it. If it was there by default, the people who try out redhat would probably
have a much better first impression of linux.
Now I just have to fix the redhat less to have the slackware's features.
|Gazing up to the breeze of the heavens \ on a quest, meaning, reason |
|came to be, how it begun \ all alone in the family of the sun |
|curiosity teasing everyone \ on our home, third stone from the sun. |