打开Mac终端出现
/.bash_profile: Permission denied
解决方法:
网上解决方法是:“找到 .bash_profile
同一目录下的.profile
文件,打开文件并注释/Users/xxx/.bash_profile
,保存即可”
查看.profile
后并没有找到/Users/xxx/.bash_profile
这个命令,
后来vim ~/.bash_profile
发现里面代码有问题,删除、保存后,source ~/.bash_profile
,运行成功。
网友评论