GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS

·Homebrew designs
·Information Grab Bag
·GNU/Linux ABCs
·Name Resolution
·Network Services
·Remote Control
·All Categories

Split Large Files Into Smaller Pieces
Topic:GNU/Linux   Date: 2012-10-13
Printer Friendly: Print   Mobile View: mobile

<<  <   >  >>


Use the split command to carve up a large file into multiple pieces, and put them back together again with cat. Use md5sum to double check your results:

split -n 2 bigfile.tar.bz2
mkdir tmp
mv bigfile.tar.bz2 tmp
xaa xab
cat xa* > bigfile.tar.bz2
md5sum bigfile.tar.bz2
08d860e55381aa87b2084449589d2dce  bigfile.tar.bz2
md5sum tmp/bigfile.tar.bz2
08d860e55381aa87b2084449589d2dce  tmp/bigfile.tar.bz2

You can also re-assemble these files using copy on Windows:

copy /b x* > bigfile.tar.bz2

Finding Files Over a Certain Size
Adding Hostname to Wordpress
Backing up WordPress via Import/Export

Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows Server are either trademarks or registered trademarks of Microsoft Corporation. is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2013