Linux Command Cheat Sheet/Split file into chunks

Break a file into smaller pieces.

Section: sed awk and Structured Text Workflows

Split file into chunks

bash
bash
split -l 100000 huge.csv chunk_
Explanation

Helpful for batch imports or sharing giant files.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing sed awk and Structured Text Workflows
Create file or update timestamp
Create an empty file if it does not exist.
OpenIn sheetbash1 tag match
Detect file type
Identify file contents and encoding.
OpenIn sheetbash1 tag match
Print working directory
Show the current absolute path.
Print file contents
Concatenate and print files to standard output.
Search text with grep
Print lines matching a pattern.
List permissions
Show permissions and ownership on files.