cat

Command Function

This command is used to display the content of a text file.

Syntax

cat [pathname]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

pathname

Indicates the file path.

An existing file

Usage

Run the cat [pathname] command to display the content of a text file.

Example

Enter cat hello-harmony.txt.

Output

Figure 1 Viewing content of the hello-harmony.txt file