• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# cat
2
3
4
5## Command Function
6
7This command is used to display the content of a text file.
8
9
10## Syntax
11
12cat [_pathname_]
13
14
15## Parameters
16
17**Table 1** Parameter description
18
19| Parameter| Description| Value Range|
20| -------- | -------- | -------- |
21| pathname | Specifies the file path. | An existing file |
22
23
24## Usage Guidelines
25
26Run the **cat** [*pathname*] command to display the content of a text file.
27
28
29## Example
30
31Run **cat hello-openharmony.txt**.
32
33
34## Output
35
36Content of **hello-openharmony.txt**
37
38```
39OHOS # cat hello-openharmony.txt
40OHOS # Hello openharmony ;)
41```
42