[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A quick Q: how do I link LS or Ls to ls



On Sat, Sep 17, 2011 at 03:24:12PM +1000, Rob Hurle wrote:
> On Sat, Sep 17, 2011 at 12:01:50PM +0800, lina wrote:
> > I wonder is it possible to make the terminal recognize
> >
> > LS or Ls
> >
> > as
> >
> > ls
> 
> Become super-user (sudo):
> 
> #cd /usr/local/bin
> #ln -s /bin/ls Ls
> #ln -s /bin/ls LS
> 
> > only in command line in terminal.
> 
> I'm not sure where else you could use `ls` apart from the command line.

One could conceivably use 'ls' in a script or perhaps even from a
program. The .bashrc solution seems good to me as the man page states
this is only read by interactive, non-login invocations of bash.


-- 
Darac Marjal


Reply to: