OSX:显示电池状态的命令行 -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

   

    使用下面的命令来显示:计算机名,序列号,

    最大容量,目前容量,充电循环次数:

    [html]

    system_profiler SPSoftwareDataType SPHardwareDataType SPPowerDataType |

    grep -E "Serial Number \(system\)|Computer Name|Cycle Count|Charge

    Remaining|Charge Capacity"

最新文章