Linux logs

From Bitnami MediaWiki
Revision as of 23:31, 12 July 2024 by User (talk | contribs) (Created page with "===Log files in linux=== Display logs from current boot only journalctl -b Show times of last 10 boot sessions journalctl --list-boots Journal since or to a time jour...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Log files in linux[edit]

Display logs from current boot only

 journalctl -b

Show times of last 10 boot sessions

 journalctl --list-boots

Journal since or to a time

 journalctl --since "2024-07-04 13:36:00" 

For a particular systemd process, since last boot

 journalctl -u NetworkManager.service -b 

Get warning level messages from dmesg

 dmesg -T -l warn