241

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.

Aayan
  • 15
  • 1
  • 1
  • 6
Abdullah
  • 2,531
  • 3
  • 13
  • 15
  • 18
    `ls` is a unix command, not Windows – Hunter McMillen Mar 10 '17 at 20:36
  • 8
    Since this is the first Google hit for `ls windows`: for those who don't want to learn Windows commands, I downloaded the GnuWin32 [CoreUtils package](http://gnuwin32.sourceforge.net/packages/coreutils.htm) and added the `bin` dir to my `PATH`. There are lots of other good gnu utils on that site. Cheers! – ipetrik Nov 28 '17 at 21:30
  • `ls` is a Unix command, not Windows. But if you still want `ls` in Windows, you can download it from http://unxutils.sourceforge.net/ –  Apr 12 '18 at 04:00
  • 4
    Stack Overflow is for _programming_ questions. Trivial interactive use of a CLI is not programming. – tripleee Apr 25 '21 at 07:18
  • Actually, ls is also Windows PowerShell command that try to mimic unix ls. – Ding-Yi Chen Dec 09 '21 at 04:42

1 Answers1

423

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

Manan Mehta
  • 5,501
  • 1
  • 18
  • 18