'ls' is not recognized as an internal or external command, operable program or batch file
无法将" ls"识别为内部或外部命令,可操作程序或批处理文件。
当我尝试浏览文件夹中的文件时出现此错误。
- cmd定期打开(不作为管理员)。
-
我最近下载了适用于python的anaconda。在安装过程中,有时允许添加不推荐的PATH。
'ls'曾经很好地工作这是路径
我相当确定
您应该改用
编辑(因为这篇文章似乎获得了这么多的意见:)):
您不能在
如果您确实要使用
我们可以在Windows cmd中使用
脚步:
1)在您的计算机上安装Git-https://git-scm.com/downloads。
2)安装Git后,转到安装Git的文件夹。
通常,它将在
3)在
它位于Git文件夹中的
在我的情况下,bin文件夹的位置为-
4)在系统的路径变量中添加此位置(
环境变量。
5)完成。重新启动cmd并尝试运行
如果要在Windows上使用Unix Shell命令,则可以使用Windows Powershell,它包括Windows和Unix命令作为别名。您可以在文档中找到更多信息。
PowerShell supports aliases to refer to commands by alternate names.
Aliasing allows users with experience in other shells to use common
command names that they already know for similar operations in
PowerShell.The PowerShell equivalents may not produce identical results. However,
the results are close enough that users can do work without knowing
the PowerShell command name.