Friday, October 5, 2012
11:20 PM

Truncate:Reduce file size from command line in linux

We can change the size of a file from the command line using the command truncate.

For e.g.



We can change the size of temp1.txt to any size we need.



But be careful as the truncation simply removes the content of the file to reduce its size.

0 comments:

Post a Comment