Combine files into one output file.

Section: Compare and Combine

Concatenate multiple files

bash
bash
cat part1.txt part2.txt > combined.txt

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 Compare and Combine
Show unified diff
Compare two files in patch-friendly format.
OpenIn sheetbashsame section
Compare files byte-by-byte
Find first differing byte.
OpenIn sheetbashsame section
Compare sorted line sets
Show common and unique lines between two sorted files.
OpenIn sheetbashsame section
Print file content
Output a file to standard output.
OpenIn sheetbash1 tag match
Split file into chunks
Split a large file into 100 MB parts.