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

我得到這個錯誤。任何人都可以幫我解決這個問題嗎?Unix命令(ls)或ls -a命令在ruby on rails上的錯誤

+3

「C:\ RailsApps \ Slambook」看起來不像Unix ... –

+0

以及我正在Rails上創建Slambook應用程序的命令服務器 – binitsql

回答

4

你的命令&輸出如下:

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

的關鍵問題是,上面寫着'ls' is not recognized以及當你的命令提示符下清楚地表明自己是一個Windows提示錯誤。

我不是Windows專家,但我相信你正在尋找的命令是dir

question & answer thread解決了如何創建解決方法以允許ls在Windows設置上工作的問題。

+0

謝謝,但我相信我們不在同一頁上。我想我是問不同的問題 – binitsql

+2

???你的錯誤清楚地表明'ls'不工作,但你在Windows機器上。那麼你的問題是什麼? 'ls'是一個Unix實用程序。 'dir'是執行相同功能的Windows實用程序。 – JakeGould

+0

謝謝傑克我不知道這是爲什麼。我現在明白了 – binitsql