1# cat<a name="EN-US_TOPIC_0000001179965845"></a> 2 3- [Command Function](#section16710153391315) 4- [Syntax](#section1699392313158) 5- [Parameters](#section1677217374136) 6- [Usage](#section186772414131) 7- [Example](#section12158131814561) 8- [Output](#section183926225561) 9 10## Command Function<a name="section16710153391315"></a> 11 12This command is used to display the content of a text file. 13 14## Syntax<a name="section1699392313158"></a> 15 16cat \[_pathname_\] 17 18## Parameters<a name="section1677217374136"></a> 19 20**Table 1** Parameter description 21 22<a name="table1049mcpsimp"></a> 23<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> 24</th> 25<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> 26</th> 27<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> 28</th> 29</tr> 30</thead> 31<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> 32</td> 33<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1066mcpsimp"><a name="p1066mcpsimp"></a><a name="p1066mcpsimp"></a>Specifies the file path.</p> 34</td> 35<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> 36</td> 37</tr> 38</tbody> 39</table> 40 41## Usage<a name="section186772414131"></a> 42 43Run the **cat** \[_pathname_\] command to display the content of a text file. 44 45## Example<a name="section12158131814561"></a> 46 47Run **cat hello-harmony.txt**. 48 49## Output<a name="section183926225561"></a> 50 51**Figure 1** Displaying the content of **hello-harmony.txt**<a name="fig15578152824618"></a> 52 53 54