原因:配置docker環(huán)境的時候修改了/etc/profile,沒想到導(dǎo)致悲慘事情,輸入什么命令都是
Command not found
可惡!??!試了好久,最終這樣搞定!
1-終端輸入命令
因為sudo命令也不能直接使用了,只能這樣調(diào)用
/usr/bin/sudo /usr/bin/vim /etc/profile
2-將之前修改的/etc/profile恢復(fù)成原樣,我是直接刪除
3-重啟文章來源:http://www.zghlxwxcb.cn/news/detail-857737.html
祝福你也成功??!不用再受苦難!文章來源地址http://www.zghlxwxcb.cn/news/detail-857737.html
到了這里,關(guān)于mac修改/etc/profile導(dǎo)致終端所有命令不可使用的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!