Section: Viewing Files

Print file content

bash
bash
cat /etc/hosts

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 Viewing Files
Open file with pager
Scroll through a file interactively.
OpenIn sheetbashsame section
Show first 20 lines
Preview top of file.
OpenIn sheetbashsame section
Follow appended log lines
Watch file growth in real time.
OpenIn sheetbashsame section
Concatenate multiple files
Combine files into one output file.
OpenIn sheetbash1 tag match
Show unified diff
Compare two files in patch-friendly format.