本文是普通用戶下linux系統(tǒng)提示找不到命令的解決方法。
首選在終端輸入以下內(nèi)容:
vi?~/.bash_profile
出現(xiàn)以下內(nèi)容:
#?.bash_profile #?Get?the?aliases?and?functions if?[?-f?~/.bashrc?];?then ??????????.?~/.bashrc fi #?User?specific?environment?and?startup?programs export?PATH
此時(shí),只要在export PATH前面加入自己的路徑即可,例如我的修改后如下:
PATH=$PATH:$HOME/bin:/sbin:/usr/bin:/usr/sbin
推薦教程:linux教程
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦