Name

fs cat — Display file

Synopsis

fs cat { file }

Arguments

NameTypeDescriptionDefault
file StringPathname of file to display. 

Description

This command displays the contents of the given file on the console. It is useful for examining configuration, script or other text files. The file is sent to the console with no additional interptetation, so applying this to a binary file may result in chaos on screen. The command will fail if the file does not exist.

Examples

Copy a file:

RedBoot> fs cat /boot/redboot.txt
# RedBoot init file
#--------------------------------------------------------------------------------
# Network setup

# Optional command to set a specific IP address
#ip_address -l 10.44.44.44/8

#--------------------------------------------------------------------------------
# JTAG setup

# Default ALT4 set
jtag 22 23 24 25 26 27

# ALT5 set, with TRST on pin 22 ALT4
#jtag 4 5 6 12 13 22

# Alternate mixed set used by some earlier JTAG implementations
# jtag 4 22 24 25 27

# All JTAG pins, useful for testing changes to pin settings.
#jtag 4 5 6 12 13 22 23 24 25 26 27

#--------------------------------------------------------------------------------
# EOF
RedBoot>