Command 'ls' not working in windows Getting an error while executing 'ls'
'ls' is not recognized as an internal or external command, operable program or batch file.
Use the command dir to list all the directories and files in Windows; ls is a unix command.
Please follow below steps to fix this
download and install git https://git-scm.com/downloads.
After git installation is completed,navigate to folder where git is installed. Check in C/Program Files Folder. Navigate to C:\Program Files\Git\bin
Add the above location (C:\Program Files\Git\bin) in path variable in system environment variables.
Restart cmd and try to run ls and other Linux commands.
It should work now!!`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With