Skip to content

Commit

Permalink
cleaning logs from journalctl -t
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Jun 13, 2024
1 parent d18db4b commit e93fcc1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,9 @@ iterate:
minutes=$(( (duration % 3600) / 60 ))
seconds=$(( duration % 60 ))

printf "Script completed in %02d:%02d:%02d (hh:mm:ss)\n" $hours $minutes $seconds
printf "Script completed in %02d:%02d:%02d (hh:mm:ss)\n" $hours $minutes $seconds

remove-logs:
#!/bin/bash
sudo rm -rf /var/log/journal/*
sudo systemctl restart systemd-journald

0 comments on commit e93fcc1

Please sign in to comment.