Related Items  

Linux and Windows IT Support  

We make IT Support easy!

Windows, Apple and Linux IT support and services.

Login or Register  

If you wish to contribute an article, please login or register.

Split a large file in Linux

PrintE-mail

Q. I am trying to move a large file, but I want to split it into chunks.

A. This can be done in using by piping the file into a split command (this also gzips the file):

Split

gzip -c largefile | split -b 512MiB - largefile_split.gz_

This will create a bunch of files:

largefile_split.gz_aa

largefile_split.gz_ab

largefile_split.gz_ac

etc...

Combine

Combining the file on the other side:

cat largefile_split.gz_* | gunzip -c > largefile

and that's it.

 

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
   
Copyright © 1999 - 2017 Virtual Helpme | Business IT Support | Original Template: Allrounder
-->