On Wednesday 17 October 2007 16:27:16 Bryen wrote:
> Is there a way to disable color coding in the 'ls' command permanently?
> It's giving me such lovely colors across my gnome-terminal but very
> unreadable with my sight.  :-)

Usually "ls" is an alias to "/bin/ls", but with some additional options. 
Try "alias ls" what they are on your system.

On mine, I get
  alias ls='ls $LS_OPTIONS'
where LS_OPTIONS="-N --color=tty -T 0". This is set in /etc/bash.bashrc. 
You can temper with this file, but the easiest way to disable colors 
permanently is to create an empty ".dir_colors" file in your home 
directory ("touch .dir_colors").

> Per the 'ls' manpages (which I don't think is true here.)
> "By  default,  color is not used to distinguish types of files.  That is
> equivalent to using --color=none.  Using the --color option without the
> optional  WHEN  argument  is  equivalent to using --color=always."

The problem is probably that you are not calling /bin/ls, but the alias, 
which specifies when to user color.

Hope this helps,

  Lutz
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to