1. 程式人生 > 其它 >#ls -/bin/sh: ls: not found失效的問題

#ls -/bin/sh: ls: not found失效的問題

技術標籤:linuxlinux

#ls
-/bin/sh: ls: not found

#vi /etc/profile
-/bin/sh: vi: not found

#gedit /etc/profile
-/bin/sh: gedit: not found

在linux開發板上出現了以上問題——因為之前這些命令都是OK的,但是因為修改了/etc/profile裡面的內容,然後被我source之後就失效了,所以肯定是我修改出現的問題。
於是,我利用以下命令,就解決了:
PATH=$PATH:/bin

在這裡插入圖片描述