User Tools

Site Tools


linux:system:journalctl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:system:journalctl [2023/08/04 08:41] – created oscarlinux:system:journalctl [2025/09/22 18:29] (current) oscar
Line 95: Line 95:
   7: debug   7: debug
  
 +===== Active Process Monitoring =====
 +The journalctl command imitates how many administrators use tail for monitoring active or recent activity. This functionality is built into journalctl, allowing you to access these features without having to pipe to another tool. To display a set amount of records, you can use the -n option, which works exactly as tail -n. By default, it will display the most recent 10 entries:
  
 +  journalctl -n
  
 +You can specify the number of entries you’d like to see with a number after the -n:
 +
 +  journalctl -n 20
 +
 +Following Logs
 +
 +To actively follow the logs as they are being written, you can use the -f flag. Again, this works as you might expect if you have experience using tail -f:
 +
 +  journalctl -f
 +
 +Current log file size/usage:
 +
 +  journalctl --disk-usage
linux/system/journalctl.1691138505.txt.gz · Last modified: by oscar