首页 > 系统服务 > 详细

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

时间:2017-08-18 19:10:35      阅读:233      评论:0      收藏:0      [点我收藏+]

这个主要是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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!