Category Archives: Bash

Delete old log files

Logrotate is an utility in Ubuntu that allows package maintainers and admins to regulate how logfiles are stored, compressed and rolled for backups. When creating lean virtual machine images, I found that I didn’t want to keep any logs. I also didn’t want to go an reconfigure logrotate. You can use the find command to […]

Posted in Bash | Tagged | Leave a comment

Blog your status to a file using Bash

I wanted to take notes about what I’m currently doing at work, but I didn’t want to upload this info to Twitter or Facebook. I also wasn’t in the mood to put MySQL and Tomcat to work hard on my laptop. I just wanted something off-line and local for security. I wrote this bash script […]

Posted in Bash | Tagged , , | 2 Comments