How to eliminate "ls" color in xterm -
Jeff Vian
jvian10 at charter.net
Sat Sep 25 12:40:03 UTC 2004
On Sat, 2004-09-25 at 06:00, Michael Schwendt wrote:
> On Sat, 25 Sep 2004 05:14:26 -0400, Bob Goodwin wrote:
>
> > How can I eliminate color in "ls" listings?
> >
> > In .bashrc can add alias ls='ls --color=never'
> >
> > But this does not change the listing in the gui terminal window.
> >
> > There must be a place to "alias" ls for something like ls -l --si
> > --color=never ?
>
> I type \ls instead of ls when I don't want the colours.
if you do 'alias' you will see the line
alias ls='ls --color=tty'
Thus ls is aliased to include the colors.
If you never want the colors, just remove that alias from your startup
scripts.
If instead you want to occasionally not have the colors then use \ls to
execute the non-aliased version of ls.
More information about the fedora-list
mailing list