how to clear log file linux code example
Example 1: clear log file space linux
find /var/log -type f -delete
Example 2: clear log file space linux
find /var/log -type f -regex ".*\.gz$"
find /var/log -type f -regex ".*\.[0-9]$"
find /var/log -type f -delete
find /var/log -type f -regex ".*\.gz$"
find /var/log -type f -regex ".*\.[0-9]$"