macOS 使用问题记录


U盘/移动硬盘


自动卸载/不显示

插入移动硬盘后,不显示(自动unmount 了),可能是文件系统损坏;
可以通过 磁盘工具 app 来 急救 修复;
如果修复失败,使用 windows 电脑,以管理员权限执行下述命令(移动硬盘挂载为 G 盘):

chkdsk G: /f

视频文件显示灰色

视频文件没拷贝完,可能会显示灰色,不能拷贝,但可以播放。这种情况下可以使用下述命令:

$ cd /Volumes/U盘名字
$ xattr -d -r com.apple.FinderInfo *

终端命令

将终端内容输出到文件:

$ man xattr >  ~/Desktop/001.md

有个问题:如果内容中包含 粗体,可能会导致这部分异常,如何解决?


Error: Your CLT does not support macOS 11.

使用brew安装 mongodb 的时候,提示下面的信息

==> Installing mongodb/brew/mongodb-community dependency: mongodb-database-
Error: Your CLT does not support macOS 11.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

Error: An exception occurred within a child process:
  SystemExit: exit

按照提示解决了,解决方法:

sudo rm -rf /Library/Developer/CommandLineTools  
  
sudo xcode-select --install  

移动文件到 /usr/bin

参考: https://blog.csdn.net/SL_World/article/details/108050614

执行语句

$ sudo mv /Users/user/Desktop/001/aexec  /usr/bin 

需要关闭 SIP

$ csrutil status  # 查看 SIP 状态
System Integrity Protection status: disabled.

如果 SIP 已关闭,还出现 Read-Only filesystem 相关的报错,执行下述命令后,再执行 mv 操作:

sudo mount -uw /

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

EAI工程笔记

请我喝杯伯爵奶茶~!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值