Related Items  

Linux and Windows IT Support  

dedicated-technology-experts

Windows, Apple and Linux IT support and services.

For Software and Web Development.

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 - 2024 Virtual Helpme | Managed IT Solutions Specialized for Your Business | Original Template: Allrounder