Search code examples
windowscmdls

How to list files in windows using command prompt (cmd). I've tried using ' ls ' as in Linux but it shows an error?


When I tried to use list ls on a Windows command prompt, the system doesn't recognize it. I already added C:\Windows\System32 in the path.


Solution

  • Use the command dir to list all the directories and files in a directory; ls is a unix command.