Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

truncate log file linux

sudo find /var/log -type f -iname '*log' -print0 | sudo  xargs -0 truncate -s0
 
PREVIOUS NEXT
Tagged: #truncate #log #file #linux
ADD COMMENT
Topic
Name
8+2 =