[Cialug] LS ?

Paul Gray gray at cs.uni.edu
Fri Apr 27 10:36:52 CDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Apr 27, 2007 at 10:29:56AM -0500, david l goodrich wrote:
> On Fri, April 27, 2007 10:24 am, albus wrote:
> > How in the world do you turn off colors in LS?
> >
> > I've tried ls --color=never but that only seems to work for
> > the one time listing. Then the colors are back the next ls.
> >
> > I hates blue letters on a black background.
> 
> You'll need to invoke ls that way every time, i suggest adding the
> following to your .profile or .bashrc:
> 
> alias ls='ls --color=never'
> 

Or, you could just "undo" the root cause of the problem...

unalias ls

and/or find the offending alias in your ~/.bashrc, ~/.bash_profile, or /etc/profile


If you want to just turn it off temporarilly (like when you're piping output to
another process that doesn't like the added color), just invoke ls directly as
/bin/ls, or wherever `which ls` takes you.

- -- 
Paul Gray                                         -o)
314 East Gym, Dept. of Computer Science           /\\
University of Northern Iowa                      _\_V
Message void if penguin violated ...  Don't mess with the penguin
No one says, "Hey, I can't read that ASCII attachment ya sent me."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGMhiUOH45TZW7mh4RAgkCAKDSvRMFnvsYzty9pRr96rWQxOks0wCdGV4A
w7ipTm/QqvrVvFQFn+YCiC4=
=aSKX
-----END PGP SIGNATURE-----


More information about the Cialug mailing list