【问题标题】:Unix command (ls) or ls-a command error in ruby on rails [closed]ruby on rails中的Unix命令(ls)或ls-a命令错误[关闭]
【发布时间】:2014-01-02 14:34:10
【问题描述】:
C:\RailsApps\Slambook> ls
'ls' is not recognized as an internal or external command,
operable program or batch file.

我收到此错误。谁能帮我解决这个问题?

【问题讨论】:

  • "C:\RailsApps\Slambook" 看起来不像 Unix...
  • 我正在努力在 ruby​​ on rails 命令服务器上创建 slambook 应用程序

标签: ruby-on-rails ruby windows unix


【解决方案1】:

你的命令和输出如下:

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 设置上工作的问题。

【讨论】:

  • 谢谢,但我相信我们不在同一页面上。我想我在问不同的问题
  • ???您的错误清楚地表明 ls 不起作用,但您在 Windows 机器上。那你的问题是什么? ls 是一个 Unix 实用程序。 dir 是一个执行相同功能的 Windows 实用程序。
  • 谢谢你,JakeGould 我不确定这就是原因。我现在明白了
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-08-11
  • 2013-01-25
  • 2017-06-20
  • 2013-05-22
  • 2012-04-21
  • 2015-06-10
  • 2014-12-16
相关资源
最近更新 更多