Quantcast
Channel: How to cut a file to a given size under Linux? - Super User
Viewing all articles
Browse latest Browse all 6

Answer by James Georgas for How to cut a file to a given size under Linux?

$
0
0

The answer above citing truncate is nice. dd will also do the job:

dd if=test.txt of=test2.txt bs=1 count=8mv test2.txt test.txt

Viewing all articles
Browse latest Browse all 6

Trending Articles