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}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.