OS X Terminal slow to bring up a prompt?

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 did not 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 (1, 2, 3) 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 had not 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.


comments powered by Disqus