/.bash_profile: Permission denied

打开Mac终端出现

/.bash_profile: Permission denied

解决方法:
网上解决方法是:“找到 .bash_profile同一目录下的.profile文件,打开文件并注释/Users/xxx/.bash_profile,保存即可”

查看.profile 后并没有找到/Users/xxx/.bash_profile这个命令,

后来vim ~/.bash_profile 发现里面代码有问题,删除、保存后,source ~/.bash_profile ,运行成功。

你可能感兴趣的:(/.bash_profile: Permission denied)