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

2011-09-17 Thread Darac Marjal
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


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110917165916.gb26...@darac.org.uk



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

2011-09-17 Thread Martin Steigerwald
Am Samstag, 17. September 2011 schrieb lina:
> Hi,

Hi Lina,

> I wonder is it possible to make the terminal recognize
> 
> LS or Ls
> 
> as
> 
> ls
> 
> only in command line in terminal.

Or use Z-Shell:

martin@merkaba:~> lS
zsh: correct 'lS' to 'ls' [nyae]? n
zsh: command not found: lS
martin@merkaba:~#127> LS
zsh: correct 'LS' to 'ls' [nyae]? n
zsh: command not found: LS
martin@merkaba:~#127> chMod
zsh: correct 'chMod' to 'chmod' [nyae]? n
zsh: command not found: chMod
martin@merkaba:~#127>

I think its the option

martin@merkaba:~> setopt | grep correct
correct

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201109170910.43210.mar...@lichtvoll.de



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

2011-09-16 Thread lina
On Sat, Sep 17, 2011 at 12:36 PM, Kumar Appaiah
wrote:

> On Sat, Sep 17, 2011 at 12:01:50PM +0800, lina wrote:
> >Hi,
> >
> >I wonder is it possible to make the terminal recognize
> >
> >LS or Ls
> >
> >as
> >
> >ls
>
> Just add
>
> alias LS='ls'
>
> in your ~/.bashrc (or analogous for your shell).
>
> Kumar
> --
> I've seen people with new children before, they go from ultra happy to
> looking like something out of a zombie film in about a week.
>-- Alan Cox about Linus after his 2nd daughter
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive:
> http://lists.debian.org/20110917043601.ga24...@bluemoon.alumni.iitm.ac.in
>
>
Thanks both of you,

it works.

-- 
Best Regards,

lina


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

2011-09-16 Thread Rob Hurle
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.

Cheers,
Rob
--
-
Rob Hurle
ANU, College of Asia and the Pacific
School of Culture, History and Language
Histories of Asia and the Pacific
e-mail:              rob1...@gmail.com
Telephone (ANU): +61 2 6125 3169
Mobile (in VN):  +84 948 243 538
Mobile (in OZ):  +61 417 293 603
-


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cabms7vgd+8aer8fkv5tkvy2vynqfsi1ib3tygpt2iox5jj1...@mail.gmail.com



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

2011-09-16 Thread Kumar Appaiah
On Sat, Sep 17, 2011 at 12:01:50PM +0800, lina wrote:
>Hi,
> 
>I wonder is it possible to make the terminal recognize
> 
>LS or Ls
> 
>as
> 
>ls

Just add

alias LS='ls'

in your ~/.bashrc (or analogous for your shell).

Kumar
-- 
I've seen people with new children before, they go from ultra happy to
looking like something out of a zombie film in about a week.
-- Alan Cox about Linus after his 2nd daughter


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110917043601.ga24...@bluemoon.alumni.iitm.ac.in



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

2011-09-16 Thread lina
Hi,

I wonder is it possible to make the terminal recognize

LS or Ls

as

ls

only in command line in terminal.

Thanks,



-- 
Best Regards,

lina