linux empty file log code example
Example 1: clear log file space linux
find /var/log -type f -regex ".*\.gz$"
find /var/log -type f -regex ".*\.[0-9]$"
Example 2: terminal truncate log file
truncate -s 0 logfile
find /var/log -type f -regex ".*\.gz$"
find /var/log -type f -regex ".*\.[0-9]$"
truncate -s 0 logfile