Today I was in the middle of some tasks and needed a bash shell. Naturally, I fired up the Terminal.app from OS X and waited….. and waited…. The window popped up but the bash prompt didn’t come up, it just stayed there with one character blinking at me. It took forever for the prompt to appear, it seemed like a few minutes but was probably more like 20 seconds. You know how time scales depending on how busy you are. Fed up with that, I goggled  around to see what if anyone else has had similar problems.
It turns out there’s a well known solution to the problem:
sudo rm -f /private/var/log/asl/*.asl
The speculation is the that a build up of log files causes the terminal app to continually slow down when opening a new prompt. After deleting the log files and opening a new terminal window the prompt appears immediately. I hadn’t noticed this behavior before Snow Leopard so it looks like apple forgot to clear something out on a regular basis or added a new check. In either case, it’s annoying.
 “OSX Terminal Slow To Launch”, http://www.proposedsolution.com/solutions/osx-terminal-slow-launch/
 “Speed up a slow Terminal by clearing log files”, http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/
 Apple Support Discussion on the problem, http://discussions.apple.com/thread.jspa?threadID=2178316
Tags: OS X