creating an alias for command line

DeadSeaSquirrels

Senior member
Jul 30, 2001
515
0
0
Can I create an alias for Windows such that 'ls' does the equivalent of 'dir /w' it sounds like a small thing, but man it's annoying when you're switching between linux and windows a lot. Thanks in advance.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I think the easiest way is to create ls.bat and put it somewhere in your PATH. Or install one of the win32 unix tools packages and get the real thing.
 

Cr0nJ0b

Golden Member
Apr 13, 2004
1,141
29
91
meettomy.site
I've been wanting to do the same thing for a while now. I keep typing cp, or ls and then have to go back and do a dir...it's just annoying.

anyway...

check this out.

linky

I've not tried it. I just loaded it up. It looks like the right answer.

If you are more advanced lookup Cygwin. It's overkill for me.

 

DeadSeaSquirrels

Senior member
Jul 30, 2001
515
0
0
update: I did it and it worked, and it was probably the easiest solution out there. I'll probably install cygwin on another machine that I may want to do more intense Linux stuff on.

yeah i've used Cygwin before it may be overkill and I might want to keep my daily machine clean. If I build another machine for file sharing I might do that to abate my insanity. Thanks for the help.