Neofobie.de

The fear of new things.

How to delete /var/log/journal

February 04, 2024 — Markus Maussner

Yes you can delete everything inside of /var/log/journal/* but do not delete the directory itself. You can also query journalctl to find out how much disk space it's consuming:

$ journalctl --disk-usage Journals take up 3.8G on disk. You can control the size of this directory using this parameter in your /etc/systemd/journald.conf:

SystemMaxUse=50M You can force a log rotation:

$ sudo systemctl kill --kill-who=main --signal=SIGUSR2 systemd-journald.service NOTE: You might need to restart the logging service to force a log rotation, if the above signaling method does not do it. You can restart the service like so:

$ sudo systemctl restart systemd-journald.service

Tags: bash, cli, linux

Ping all Ip's in a Subnet

February 04, 2024 — Markus Maussner

bash: for i in $(seq 1 254); do ping -c1 -t 1 192.168.11.$i; done

namp:

nmap -n -sP 10.0.0.0/24

Tags: bash, cli, ping, nmap