l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
April 21: Google Glass
Next Installfest:
TBD
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
Page last updated:
2001 Dec 30 17:00

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] .bashrc alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] .bashrc alias


  • Subject: Re: [vox-tech] .bashrc alias
  • From: Mark Kim <mkkMAPSim@ucdavis.edu>
  • Date: Fri, 16 Feb 2001 23:05:44 -0800
  • References: 3A8E1E26.1462D56C@afes.com

The alias command depends on what shell you use.  If you use BASH:

   alias ls="ls -F --color"

will work nicely.  If you use TCSH:

   alias ls "ls -F --color"

should work.

-Mark

On Fri, 16 Feb 2001, Robert G. Scofield wrote:

> I hate to bother you pros with such an easy question, but I can't figure
> out how to do this.  I'm trying to get the ls command to work
> automatically with the color option.  According to page 110 of the
> February issue of Linux Magazine, all you have to do is add this line to
> .bashrc:
> 
> alias ls = ls -a -color
> 
> It doesn't work.  I've tried different variations of this and they don't
> work.  I've got RedHat 6.1, and I've discovered that to temporarily get
> ls to work in color I have to put two dashes in front of "color"; like
> this:  ls --color.  But this doesn't work in .bashrc if I use it in the
> way suggested by Linux  Magazine.  So can one of you please tell me the
> right way to do it?
> 
> Thank you.
> 
> Bob
> 
> --
> Robert G. Scofield
> rscofield@afes.com
> 
> 
> 

---
Mark K. Kim
http://www.cbreak.org/mark/
PGP key available upon request.



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!