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

WindowsCmdLs

Windows Problem Overview


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.

Windows Solutions


Solution 1 - Windows

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAbdullahView Question on Stackoverflow
Solution 1 - WindowsManan MehtaView Answer on Stackoverflow