今天手贱啊,非要改mac的环境变量,一改不要紧,除了cd,其他命令都是command not found
解决方法:
1、export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
2、cd ~/
3、touch .bash_profile
4、open .bash_profile
5、编辑环境变量的文件
6、source .bash_profile
今天手贱啊,非要改mac的环境变量,一改不要紧,除了cd,其他命令都是command not found
解决方法:
1、export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
2、cd ~/
3、touch .bash_profile
4、open .bash_profile
5、编辑环境变量的文件
6、source .bash_profile