Truncate Log File

Truncate Log File

Truncate Log File

Use the truncate command to shrink or extend the size of each FILE to the specified size:

The -s option is used to set SIZE to zero. See truncate command man page for more details:

 

 

That’s all folks.