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.
Written by Landon Noss
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#