mac os find out who is logedin code example
Example: check login info on mac os
sudo log show --style syslog --last 1d | awk '/Enter/ && /unlockUIBecomesActive/ {print $1 " " $2}'
sudo log show --style syslog --last 1d | awk '/Enter/ && /unlockUIBecomesActive/ {print $1 " " $2}'