Display File Contents
SH · File Contentsyntax
cat [options] file...example
cat server.log
cat -n deploy.sh
cat header.html body.html footer.html > page.htmlNote -n adds line numbers, -A shows invisible characters (tabs, line endings). cat is best for short files; use less for anything longer than a screenful. Concatenating multiple files into one is where cat gets its name.