Linux

split

SafeSplit files

split -b 100M <file> part_

Splits big files by size or lines — for attachments and FAT32's 4 GB cap. Reassemble with cat.

Examples

  • split -b 3G backup.tar.gz bk_ && cat bk_* > backup.tar.gzSplit, then cat to restore

Syntax

split [-b size] [-l lines] <file> [prefix]

Before you run it

Creates pieces only.

Related commands

  • catPrint file contents
  • tarArchive (tar)
  • ddBlock-level copy

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store