Find file in Time Machine backup with command line
In order to access a Time Machine backup from Terminal on macOS Mojave, and later, you'll need to add Terminal to Full Disk Access in System Preferences > Security &amp; Privacy > Privacy for it to work.