Name

fs cp — Copy file

Synopsis

fs cp { source } { dest }

Arguments

NameTypeDescriptionDefault
source StringPathname of file to copy. 
dest StringPathname to new file location. 

Description

This command copies a file from one location to another. Source and destination need not be on the same file system. If the destination file already exists it will be overwritten with the new file contents. This command will fail if the source file does not exist.

Examples

Copy a file:

RedBoot> fs ls /usb
drwxrwxrwx         0 System Volume Information
drwxrwxrwx         0 TEST
RedBoot> fs cp /boot/LICENCE.broadcom /usb/LICENCE.broadcom
RedBoot> fs ls /usb
drwxrwxrwx         0 System Volume Information
drwxrwxrwx         0 TEST
-rwxrwxrwx      1494 LICENCE.broadcom
RedBoot>