Linux Cat command

List the content of the specified file

Written under Linux commands

Summary

On Linux based Operating Systems cat command is used to view contents, append content, create new file, concatenate files, redirect output in terminal or files

Purpose

List the content of the specified file

Syntax

cat [OPTION] [FILE]

Options

-n Number all output lines.
--help Display this help and exit.
--version Output version information and exit.

Usage and examples

cat filename
cat /path/to/file
cat /etc/passwd