Site Navigation

Nov 27, 2009

Adding ls and ll to Windows

When I set up a new windows machine, one of the first things I do is setup a simple alias for Unix ls command and the ll alias I usually have setup for ls -l. You don't have to install any special software. Just create two very simple batch files.

Here are the two files I typically create in the Windows directory. If running Windows 7, you will need to run your editor or command prompt as administrator to create the files.

dir %1 %2 %3 %4 %5

dir /w %1 %2 %3 %4 %5

The extra variables allow you to add extra command line parameters or pass a directory path. Not fancy, but it gets the job done. And, I don't have to think when I need a directory listing.
Post a Comment

Favorite Links Feed