Search

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.

No comments:

Post a Comment