如何解决"bash:ls:找不到命令"? [英] How to solve "bash: ls: command not found"

查看:939
本文介绍了如何解决"bash:ls:找不到命令"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 PATH 上做错了,所以目前如果我键入ls命令,我会得到:

I did something wrong with PATH, so currently if I type ls command I get:

bash: ls: command not found

我该如何解决?

推荐答案

还原$PATH.最简单的方法是关闭当前外壳,然后打开一个新外壳(假设您不熟悉外壳启动文件,这就是它损坏的原因).

Restore $PATH. The easiest way to do this is to close the current shell and open a new one (assuming you didn't futz with the shell startup files and this is why it's broken).

这篇关于如何解决"bash:ls:找不到命令"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆