mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-21 18:19:56 +01:00
Clean linux logs
This commit is contained in:
parent
be0c5488a6
commit
326fae5d2d
8
scripts/clean-logs-linux.sh
Executable file
8
scripts/clean-logs-linux.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
|
# Delete logs older than 7 days
|
||||||
|
sudo journalctl --vacuum-time=7days
|
||||||
|
|
||||||
|
# Delete other archived log files
|
||||||
|
sudo rm /var/log/*.gz
|
Loading…
Reference in New Issue
Block a user