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