How do I reduce the size of a log file in Linux?

How do I reduce the size of a log file in Linux?
Answer
The safest method to empty a log file in Linux is by using the truncate command. Truncate command is used to shrink or extend the size of each FILE to the specified size. Where -s is used to set or adjust the file size by SIZE bytes.
 

Tìm kiếm

Back
Top