I want to use ls in windows command prompt and make it run the dir command.
How can I do that?
If you have Node.js installed on your system, you can install it from Cash, a library I wrote for Linux commands on Windows:
npm install cash-ls -g