System Grab Bag

View all TLDR pages from Mac OS X (or from all pages)

log

View, export, and configure logging systems. More information: https://www.dssw.co.uk/reference/log.html.
  • Stream live system logs:
    log stream
  • Stream logs sent to syslog from the process with a specific PID:
    log stream --process {{process_id}}
  • Show logs sent to syslog from a process with a specific name:
    log show --predicate "process == '{{process_name}}'"
  • Export all logs to disk for the past hour:
    sudo log collect --last {{1h}} --output {{path/to/file.logarchive}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.