一.首先輸入一下命令保證命令暫時能夠運行
export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
二.輸入: cd ~/ 進(jìn)入當(dāng)前用戶的home目錄。
三. 創(chuàng)建bash_profile執(zhí)行命令: touch .bash_profile執(zhí)行命令
四.env一下我們看到
28BC5328-0FC2-4BF6-8C84-6059D70FBA3F.png
五.打開.bash_profile
open .bash_profile
六.將export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin粘貼進(jìn)去
Snip20170328_2.png
七.跟新一下
source .bash_profile