Truncate large files in linux

Better late than never

Truncate file into Mb’s

$ sudo truncate -s 10M filename.log

Truncate file into Gb’s

$ sudo truncate -s 1G filename.log

Leave a Reply

Your email address will not be published. Required fields are marked *