Windows console ‘ls’ tip

I’ve been using the console a lot more on my windows machine here at blenderbox, and I find myself typing in the unix command ‘ls’ to display the directory listing over and over.  Each time I want to display the directory, I end up having to type in two commands.  I finally decided to do something about this today and created a batch file for ls to run the dir command.  To do this,

  1. Open a new text file, type: dir
  2. Save as ls.bat in C:\Windows\System32\

Now whenever I type ls by mistake, it runs the dir command, giving me the directory listing.  Sweet yea?

Add a comment

Your email is never published or shared. Required fields are marked *

*
*