0
C:\RailsApps\Slambook> ls
'ls' is not recognized as an internal or external command,
operable program or batch file.

I am getting this error. Can anyone help me to resolve this issue?

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
binitsql
  • 67
  • 2
  • 10

1 Answers1

4

Your command & output is as follows:

C:\RailsApps\Slambook> ls
'ls' is not recognized as an internal or
external command, operable program or batch file.

The key issue is the error that reads, 'ls' is not recognized as well as when your command prompt clearly shows itself to be a Windows prompt.

I am not a Windows expert, but I believe the command you are looking for is dir.

This question & answer thread addresses the issue of how to create a workaround to allow ls to work on Windows setups.

Community
  • 1
  • 1
Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
  • thank you but i believe we are not on same page. i think i am asking different question – binitsql Dec 15 '13 at 01:13
  • 2
    ??? Your error clearly states that `ls` is not working but you are on a Windows machine. What then is your question? `ls` is a Unix utility. `dir` is a Windows utility that performs the same function. – Giacomo1968 Dec 15 '13 at 01:33
  • thank you JakeGould i was not sure that's why. I got it now – binitsql Dec 15 '13 at 02:09