码迷,mamicode.com
首页 > 系统相关 > 详细

MacPro终端出现bash: touch: command not found

时间:2017-08-18 20:08:30      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:测试   备份   编辑   not   文件   系统   logs   问题   class   

这个主要是bash_profile文件有问题,有可能编辑的时候出错了

我们可以通过以下方法来恢复

在终端输入:

export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin  

然后切换到用户home目录下:

cd ~/

创建bash_profile文件:

touch .bash_profile

打开bash_profile:

open .bash_profile

现在你可以看到之前配置的bash_profile文件,检查是否有错误,如果检查不出,就备份好,只保留系统的,一条一条测试

重新载入配置:

source .bash_profile

MacPro终端出现bash: touch: command not found

标签:测试   备份   编辑   not   文件   系统   logs   问题   class   

原文地址:http://www.cnblogs.com/chrion/p/7391059.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!