Last Updated: September 09, 2019
· landongn

Speed up your terminal (OSX)

Terminal starting up slow? Things taking longer than they should? There's a decent chance OSX has just too much crap cached and stored as logs.

run the following from Terminal: sudo rm -rf /private/var/log/asl/*

Note: This will nuke any terminal logs (if you'd even want them) on your machine.

1 Response
Add your response


Brute force removal of files can lead to unexpected issues, especially when removing a log file from underneath a running process. You can mediate this a bit by using find to only remove 'old' files, in this example-- older than 5 days.

> (sudo) find /private/var/log/asl/* -mtime +5 -exec rm -rf {} \;

I use this personally to clear out my local development and test logs older than a day

over 1 year ago ·