美文网首页
mac电脑.bash_profile锁定没有权限编辑

mac电脑.bash_profile锁定没有权限编辑

作者: 米开朗琪戈 | 来源:发表于2021-01-25 15:02 被阅读0次

只需要给自己的用户 编辑权限就行,命令如下:

1、/usr/bin/sudo /bin/chmod u+rwx /Users/username/.bash_profile

2、/usr/bin/sudo /usr/sbin/chown username /Users/username/.bash_profile

ps:username就是你自己的用户名,比如我叫zhangsan,直接把命令中的username改为zhangsan即可

3、vim ~/.bash_profile即可进行编辑

相关文章

网友评论

      本文标题:mac电脑.bash_profile锁定没有权限编辑

      本文链接:https://www.haomeiwen.com/subject/vgtizktx.html