macos - Mac终端无法访问文件
问题描述
我的 mac 终端无法访问文档文件夹中的文件。我收到以下错误:
zsh:权限被拒绝
在系统偏好设置中,我给了终端全盘访问权限。当我转到文档文件夹时-> 获取信息-> 我的用户名具有读写权限。我还在文件夹上运行了 chmod 777 但似乎没有任何效果。有人知道导致这个问题的原因吗?
编辑:事实证明,我无法使用终端访问单个文件。看起来我的终端没有应有的权利。
解决方案
I fixed the issue! Nothing seemed to work so I wanted to reset the terminal. To do that I had te remove the following file:
~/Library/Preferences/com.apple.Terminal.plist
Then I restarted the terminal and now I can acces my files again!
推荐阅读
- r - 如何计算一组中的最大值并最小化另一组并取平均时间
- fluent-ui - Fluent UI React 将焦点轮廓颜色更改为主要反转颜色
- error-handling - 密钥派生上的 OpenSSL AES 对称错误
- python - 如何修复模板渲染期间的错误
- express - 如何正确地将快递路线拆分为单独的文件?
- css - 下拉列表左侧的 Bootstrap NAVBAR 项 t
- amazon-web-services - 监控账户中 S3 存储桶的数量
- c - 在结构中查找偏移量
- prometheus - 入口控制器中 request_duration 和 response_duration prometheus 指标之间的区别
- r - 当所有值都在R中数据框的同一列中时计算百分比