ls is not recognized as an internal or external command
In this tutorial, we are going to learn about how to fix the ls is not recognized as an internal or external command error.
When we try to list a number of files from directory using the ls command in windows os, we will see this type of error is displayed in our command line.
lsOutput:
'ls' is not recognized as an internal or external command,
operable program or batch file.This error is occurred due to the ls command is not available in windows os. It is only available in Linux based operating systems.
To fix the “‘ls’ is not recognized as an internal or external command” error, replace the ls command with windows dir command and run it:
dir

