blob: 5ef4731fe3f859c2ca8612a93fd3925a91a6edc9 [file] [log] [blame]
Roger Knecht11827c42022-09-03 11:34:53 +00001.. SPDX-License-Identifier: GPL-2.0+:
2
3cat command
4===============
5
6Synopsis
7--------
8
9::
10
11 cat <interface> <dev[:part]> <file>
12
13Description
14-----------
15
16The cat command prints the file content to standard out.
17
18interface
19 interface for accessing the block device (mmc, sata, scsi, usb, ....)
20
21dev
22 device number
23
24part
25 partition number, defaults to 1
26
27file
28 path to file
29
30Example
31-------
32
33Here is the output for a example text file:
34
35::
36
37 => cat mmc 0:1 hello
38 hello world
39 =>
40
41Configuration
42-------------
43
44The cat command is only available if CONFIG_CMD_CAT=y.
45
46Return value
47------------
48
49The return value $? is set to 0 (true) if the file is readable, otherwise it returns a non-zero error code.