cat

Command Function

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

Syntax

cat [pathname]

Parameters

Table 1 Parameter description

Parameter Description Value Range
pathname Specifies the file path. An existing file

Usage Guidelines

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

Example

Run cat hello-openharmony.txt.

Output

Content of hello-openharmony.txt

OHOS # cat hello-openharmony.txt
OHOS # Hello openharmony ;)