新搞了台iMAC,原来没有.bash_profile,我自己建了一个,导致bash命令无法使用
ixiaopengdeiMac:~ bixiaopeng$ ls
-bash: ls: command not found
bixiaopengdeiMac:~ bixiaopeng$ ls -al
-bash: ls: command not found
解决办法:
bixiaopengdeiMac:~ bixiaopeng$ export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
bixiaopengdeiMac:~ bixiaopeng$ open -e ~/.bash_profile
添加命令:
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
保存后搞定
订阅
微信搜索“毕小烦”或者扫描下面的二维码,即可订阅我的文章。
如果文章对你有帮助,请随手点个赞吧!
(完)