max osx

Truncating a large log file

This is actually one of my favorite questions to ask Jr. Systems Administrators. I believe the way they answer this question really helps me gauge where they are at in their Administration skills. How do you clear a large log file that an application is actively writing to? Some will answer honestly and say “by removing the file” and others will pretend like they careful of everything and say “move the file out of the way and create a new one”.