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.
I did something wrong with PATH, so currently if I type ls command I get:
ls
bash: ls: command not found
How can I solve it?
恢复$PATH。最简单的方法是关闭当前的 shell 并打开一个新的(假设您没有使用 shell 启动文件,这就是它被破坏的原因)。
$PATH