Linux Commands Helper
💬 Your AI-powered Linux assistant
split Command - Split a File into Pieces
The split command splits a file into pieces. It is useful for breaking up large files into smaller chunks for easier handling or transfer.
Syntax
split [options] [input [prefix]]
Examples
split -b 100M largefile.bin part_
Split largefile.bin into 100MB pieces with prefix part_.
split -l 1000 data.txt chunk_
Split data.txt into files with 1000 lines each, using prefix chunk_.
Notes
- Default prefix is 'x' if not specified.
- Useful for transferring large files in parts.