Mac命令集

2019 - 03 - 08

亮屏时间(1天内)

log show --last 1d | grep 'User Is ACTIVE' | awk '{print $1,$2}'

息屏时间(1天内)

log show --last 1d | grep 'sleeping the display' | awk '{print $1,$2}'

登录成功时间(1天内)

log show --last 1d | grep 'kScreenIsUnlocked' | awk '{print $1,$2}'
Table of Contents