Quick tip: Empty a file’s contents with the Terminal
> filename
In other words: dump whatever is in front of the “>” sign (nothing) into the specified file.
Comes in handy for flushing files, while keeping permissions.
For a while I was doing rm+touch+chmod, until I found out about this.