8.6.33 Clear file contents
In order to clear the contents of a file such as a logfile, do not use
rm to delete the file and then create a new empty file, because
the file may still be accessed in the interval between commands. The following
is the safe way to clear the contents of the file.