wiki.xw3.org

Welcome to the xw3 Wiki! Powered by hanez

User Tools

Site Tools


linux:systemd

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:systemd [2025-03-18] – removed - external edit (Unknown date) 127.0.0.1linux:systemd [2025-03-18] (current) hanez
Line 1: Line 1:
 +====== systemd ======
  
 +<WRAP important>
 +To make it clear, I hate systemd! I use it only when there is no way around...
 +</WRAP>
 +
 +
 +===== How to clear journalctl (/var/log/journal) =====
 +
 +Retain only the past two days:
 +
 +<code>journalctl --vacuum-time=2d</code>
 +
 +Retain only the past 500 MB:
 +
 +<code>journalctl --vacuum-size=500M</code>
 +
 +Source: [[https://unix.stackexchange.com/questions/139513/how-to-clear-journalctl#194058]]
 +
 +===== Links =====
 +
 + * [[https://crates.io/crates/systemctl-tui|systemctl-tui]] - A simple TUI for interacting with systemd services and their logs