dircolors

Hello,
I am running Red Hat 8.0
Recently, my terminal shell has started displaying:
bash: dircolors: command not found
each time I open my shell. I know I'm using an
"ancient" version of Red Hat, but this just started.
Can someone point me in the righ direction to correct
this???
Let me know...

Thank you,

Inquire_98

"This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to which they are addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, please contact the sender and delete the material from your computer. Please note that any view or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Primes. ("Primes") and/or its subsidiaries. Finally, the recipient should check this e-mail and any attachments for the presence of viruses. Primes accepts no liability for any damage caused by any virus transmitted by this e-mail."

Some of the bash defaults are annoying so I create aliases in my .bash_profile to set them to setting I like:
alias ls=/bin/ls
alias cp=/bin/cp
alias copy=/bin/cp
alias rd='/bin/rm -rf'
alias syslog='/bin/vi /var/log/messages'
export PS1='${PWD#*}> '

bash sets up aliases for stuff like rm like, rm -i and uses the set command for ls and other odds and ends that have to be changed in the .bash_profile, .bashrc, .profile to get sane and predictable values. By adding aliases instead of unalias -a you provides finer control. It's all a matter of preference and experience and there is no "right" way as long as everything works well.

Bash does not set up any aliases. If any aliases are defined, it is because they are in one of the files sourced by bash on invocation (e.g., in /etc/profile).

> for stuff like rm like, rm -i and uses the set command for ls and other odds and ends that have to be changed in the .bash_profile, .bashrc, .profile to get sane and predictable values.

Some Linux distros (Mandriva, for example) add a number of aliases, some of which (alias rm='rm -i', for one) are downright dangerous.

> By adding aliases instead of unalias -a you provides finer control.

By using 'unalias -a' you get more control than without it. If you want, you can then set the aliases YOU want, not what someone else thinks you should have. However, as the bash man page states, "For almost every purpose, aliases are superseded by shell functions."

> It's all a matter of preference and experience and there is no "right" way as long as everything works well.

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.