用 system_profiler 查看 Mac 蓝牙控制器和已连接设备
在终端使用 system_profiler 的 SPBluetoothDataType 输出报告,查看 Mac 蓝牙控制器信息以及所有已连接的蓝牙设备。
system_profiler SPBluetoothDataType
01命令
命令
$ system_profiler SPBluetoothDataType02作用说明
system_profiler 支持只输出某一类数据(官方示例:'Report for one (or several) Data Types: system_profiler dataType1 ... dataTypeN')。SPBluetoothDataType 会显示蓝牙控制器硬件信息以及已配对/已连接的蓝牙设备列表。想查看所有可用数据类型,可运行 'system_profiler -listDataTypes'。
03风险
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- SYSTEM_PROFILER Command: Report macOS system hardware and software configuration依据: Report for one (or several) Data Types: system_profiler [-xml] dataType1 ... dataTypeN
最后验证: 2026-09-21 · 分类: 系统与设置