Skip to content

How to split large file in smaller files using Linux

Hello,

To split a large file in several smaller files, you can use Split from Linux. How it works? Man split.

split --bytes=1m /path/large/file /path/output/file/prefix

You can replace the suffix of --bytes with many values as follow:
kB = 1000
K = 1024
MB = 1000 * 1000
M = 1024 * 1024
G = 1000 * 1000 * 1000
GB = 1024 * 1024 * 1024

Best Regards,
Matheus

Reference:
http://www.techiecorner.com/107/how-to-split-large-file-into-several-smaller-files-linux/

Published inLinux

Be First to Comment

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.