kernel-small-debug-shell-file-cat.md 2.2 KB
Newer Older
D
duangavin123 已提交
1
# cat<a name="EN-US_TOPIC_0000001179965845"></a>
W
wenjun 已提交
2 3 4 5 6 7 8 9 10

## 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_\]

D
duangavin123 已提交
11
## Parameters<a name="section1677217374136"></a>
W
wenjun 已提交
12

D
duangavin123 已提交
13
**Table  1**  Parameter description
W
wenjun 已提交
14 15 16 17 18 19 20 21 22 23 24 25

<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>
D
duangavin123 已提交
26
<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>
W
wenjun 已提交
27 28 29 30 31 32 33 34 35 36 37 38 39
</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>

D
duangavin123 已提交
40
Run  **cat hello-harmony.txt**.
W
wenjun 已提交
41 42 43

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

D
duangavin123 已提交
44 45
**Figure  1**  Displaying the content of  **hello-harmony.txt**<a name="fig15578152824618"></a>  
![](figure/displaying-the-content-of-hello-harmony-txt.png "displaying-the-content-of-hello-harmony-txt")
W
wenjun 已提交
46