If you want to audit, when your Mac (Macbook/iMac/Mac Studio/Mini) was last logged in, rebooted, or shut down, you can make use of the last command on the Terminal app. It will give a record of all such details.
Example:Macbook % last
code2care ttys001 Thu Sep 14 10:58 still logged in
code2care ttys000 Thu Sep 14 10:58 still logged in
code2care console Thu Sep 14 10:58 still logged in
reboot time Thu Sep 14 10:57
shutdown time Thu Sep 14 00:31
code2care ttys001 Wed Sep 13 13:26 - 13:26 (00:00)
code2care ttys000 Wed Sep 13 13:25 - 13:25 (00:00)
code2care console Tue Sep 12 09:59 - 00:31 (1+14:31)
reboot time Tue Sep 12 09:58
shutdown time Tue Sep 12 01:22
code2care ttys000 Sun Sep 10 11:23 - 11:23 (00:00)
code2care ttys000 Sun Sep 10 10:46 - 10:46 (00:00)
code2care console Sat Sep 9 20:03 - 01:22 (2+05:18)
_mbsetupuser console Sat Sep 9 20:00 - 20:03 (00:03)
root console Sat Sep 9 20:00 - 20:00 (00:00)
reboot time Sat Sep 9 19:59
You can filter this information by piping this command with grep.
List of all recent Mac Shutdowns
Macbook % last | grep 'shutdown'
shutdown time Thu Sep 14 00:31
shutdown time Tue Sep 12 01:22
List of all recent Mac Reboots
Macbook % last | grep 'reboot'
reboot time Thu Sep 14 10:57
reboot time Tue Sep 12 09:58
reboot time Sat Sep 9 19:59
List of all recent Mac Logins
Macbook % last | grep 'logged'
code2care ttys001 Thu Sep 14 10:58 still logged in
code2care ttys000 Thu Sep 14 10:58 still logged in
code2care console Thu Sep 14 10:58 still logged in

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to MacOS,
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
More Posts:
- Rounded Images in Bootstrap framework - Bootstrap
- Check If Python pip modules are outdated and New Version is Available - PIP
- Run Java Code Every Second - Java
- macOS: Remove Desktop or Documents Folder from iCloud Drive Syncing - MacOS
- How to Search Text using Nano Editor - Linux
- Add HTML to Android Activity or TextView - Android
- [Java] Generate Getters and Setters in VS Code - Java
- error: file not found: HelloWorld.java - Java