Commands by Topic
- Search for specific errors in log files older than 10 days (find)
- Remove lines containing 'monday' or 'tuesday' from log/text files (find, sed)
- Clean cPanel logs for specific terms and remove recent files
- Search cPanel logs for specific words and display matches
- Delete mentions of specific words in cPanel logs
- Clean up systemd journal logs older than 2 weeks (journalctl)
- View logs from previous boot (journalctl)
- View ClamAV logs for today (journalctl)
- Check the disk space used by systemd journal logs (journalctl)
- Live-tail logs for a systemd service in JSON format (journalctl)