mac权限相关命令
常用的mac命令
重置麦克风、摄像头、录屏权限
# 摄像头
tccutil reset Camera
# 麦克风
tccutil reset Microphone
# 录屏
tccutil reset ScreenCapture
终端命令打开对应隐私窗口
# 摄像头
open "x-apple.systempreferences:com.apple.preference.security?Privacy_Camera"
# 麦克风
open "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone"
# 录屏
open "x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture"
终端命令打开系统应用
# xxxx ==> 对应下图的名称
open -b com.apple.systempreferences /System/Library/PreferencePanes/xxxx