split do?split a file into fixed-size or fixed-count pieces.
▸ Explain your own split command →$ split -l 1000 big.txt part_
$ split -b 10M file.iso chunk_
$ split -n 4 -d data seg_
| -l | put this many lines in each output file |
| -b | put this many bytes in each output file (accepts K/M/G) |
| -n | split into this many equal chunks |
| -d | use numeric suffixes (00, 01, …) instead of letters |
| -a | length of the generated suffixes |
| -C | at most this many bytes per file, but keep lines whole |
| -x | use hexadecimal suffixes |
| --lines | put this many lines in each output file |
| --bytes | put this many bytes in each output file |
| --number | split into this many equal chunks |
| --suffix-length | length of the generated suffixes |
| --additional-suffix | append this suffix to output file names |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.