January 21, 2011

Speed up a slow Terminal by clearing log files

Is your Mac Terminal slow to launch? Speed it up instantly by clearing outdated system log files in /private/var/log/asl.

Terminal has been getting slower and slower for me on launch. For whatever reason this morning I finally spent a couple of minutes on Google and came across this gem:

Speed up a slow Terminal by clearing log files.

In short:

cd /private/var/log/asl/
ls *.asl
sudo rm !$

This clears out OSX’s system logs and results in an instant launch of terminal again.