# cat<a name="EN-US_TOPIC_0000001052170305"></a>

-   [Command Function](#section16710153391315)
-   [Syntax](#section1699392313158)
-   [Parameter Description](#section1677217374136)
-   [Usage](#section186772414131)
-   [Example](#section12158131814561)
-   [Output](#section183926225561)

## Command Function<a name="section16710153391315"></a>

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

## Syntax<a name="section1699392313158"></a>

cat \[_pathname_\]

## Parameter Description<a name="section1677217374136"></a>

**Table  1**  Parameters

<a name="table1049mcpsimp"></a>
<table><thead align="left"><tr id="row1055mcpsimp"><th class="cellrowborder" valign="top" width="21%" id="mcps1.2.4.1.1"><p id="p1057mcpsimp"><a name="p1057mcpsimp"></a><a name="p1057mcpsimp"></a><strong id="b2166111484619"><a name="b2166111484619"></a><a name="b2166111484619"></a>Parameter</strong></p>
</th>
<th class="cellrowborder" valign="top" width="52%" id="mcps1.2.4.1.2"><p id="p1059mcpsimp"><a name="p1059mcpsimp"></a><a name="p1059mcpsimp"></a><strong id="b17121718469"><a name="b17121718469"></a><a name="b17121718469"></a>Description</strong></p>
</th>
<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p1061mcpsimp"><a name="p1061mcpsimp"></a><a name="p1061mcpsimp"></a><strong id="b6990101716464"><a name="b6990101716464"></a><a name="b6990101716464"></a>Value Range</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="row1062mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1064mcpsimp"><a name="p1064mcpsimp"></a><a name="p1064mcpsimp"></a>pathname</p>
</td>
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1066mcpsimp"><a name="p1066mcpsimp"></a><a name="p1066mcpsimp"></a>Indicates the file path.</p>
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1068mcpsimp"><a name="p1068mcpsimp"></a><a name="p1068mcpsimp"></a>An existing file</p>
</td>
</tr>
</tbody>
</table>

## Usage<a name="section186772414131"></a>

Run the  **cat**  \[_pathname_\] command to display the content of a text file.

## Example<a name="section12158131814561"></a>

Enter  **cat hello-harmony.txt**.

## Output<a name="section183926225561"></a>

**Figure  1**  Viewing content of the  **hello-harmony.txt**  file<a name="fig15578152824618"></a>  
![](figures/viewing-content-of-the-hello-harmony-txt-file.png "viewing-content-of-the-hello-harmony-txt-file")

