split
FilesFundamentals In simulator In real LinuxSplit a file into pieces
Name: split
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
split cuts a large file into pieces by line count (-l) or size (-b), named xaa, xab … by default. cat them back together in order to restore it. Useful when transfers or storage have size limits.
Syntax
split [OPTION]... [FILE [PREFIX]]Common options
| -l / --lines NUM | Lines per output file |
| -b / --bytes SIZE | Size per output file, e.g. 100M |
| -n / --number CHUNKS | Split into CHUNKS equal parts |
| -d | Use numeric suffixes |
| -a / --suffix-length N | Use N characters for suffixes (2 by default: aa, ab, …) |
| --additional-suffix SUFFIX | Add SUFFIX to each name, e.g. .txt |