Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能解释我的终端出了什么问题:
$ 回声 $PATH =/usr/local/bin $ ls -bash: ls: 找不到命令 $光盘 -bash:查找:找不到命令
为什么这些命令不起作用?帮助?任何人?
我猜你的.bash_profile或.bashrc有一条看起来像的线
.bash_profile
.bashrc
export PATH=/usr/local/bin
这将覆盖所有需要在您的$PATH. 你需要改变这条线看起来像
$PATH
export PATH=/usr/local/bin:$PATH
“ ls”住在“ /bin”和“ find”住在“ /usr/bin”。您需要将这些添加到您的 bash_profile 或 .bashrc 中的 $PATH。
ls
/bin
find
/usr/bin