-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux split Guide
Mattscreative edited this page Dec 5, 2025
·
3 revisions
Complete beginner-friendly guide to split on Linux, covering Arch Linux, CachyOS, and other distributions including file splitting, chunk creation, and large file management.
Basic usage:
# Split file
split file.txt
# Creates xaa, xab, xac, etc.Custom output:
# Custom prefix
split file.txt output_
# Creates output_aa, output_ab, etc.1000 lines:
# Default: 1000 lines per file
split file.txt
# Creates files with 1000 lines eachSet size:
# Custom size (lines)
split -l 500 file.txt
# -l = lines (500 lines per file)Split by bytes:
# Split by bytes
split -b 1M file.txt
# -b = bytes (1MB per file)Different units:
# Kilobytes
split -b 100K file.txt
# Megabytes
split -b 10M file.txt
# Gigabytes
split -b 1G file.txtLine count:
# Lines per file
split -l 1000 file.txt
# -l = lines (1000 lines per file)Split into files:
# Number of files
split -n 5 file.txt
# -n = number (splits into 5 files)Check installation:
# split is part of coreutils
# Usually pre-installed
# Check split
which splitThis guide covered split usage, file splitting, and chunk creation for Arch Linux, CachyOS, and other distributions.
- cat Guide - Combine files
- File Operations - File management
-
split Documentation:
man split
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.