linux/cat

Concatenate Files

Display file contents

filesystem
text

Command

cat

Explanation

cat is used to display file contents. It displays the contents of the file.

Examples

Show file contents

cat file.txt

Combine files

cat file1.txt file2.txt > combined.txt