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.

Read Me Leave comment

Setting up logrotate in RHEL

Setting up logrotate in RHEL

So on today’s fun things to deal with, I had a teammate come to me with a problem with one of the servers. It seems nginx just refused to startup. Well it turns out that the reason Nginx wouldn’t start, was because the hard drive was completely full, and there was no space left on the device. But how did I figure this out? 1. […]

Read Me 1 Comment