EMPTY SYSLOG FILE ON LINUX


In some cases, it is necessary to empty a file without deleting it.
A typical case is to have a log file on the server, which has grown excessively and occupies a lot of disk space.

To empty the syslog file it can be done as follows:

sudo truncate -s 0 daemon.log.1

Before it was a ticket. Now it's a prompt.

Does your Drupal leak?

Tell me what you are working on and what worries you. I'll reply personally and, if I'm not the right person, I'll tell you too.