Name

fs mv — Move file

Synopsis

fs mv { source } { dest }

Arguments

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

Description

This command moves a file within a filesystem. This command will fail if the destination file already exists, or is in a different filesystem.

Examples

Rename a file:

RedBoot> fs ls tests
d---------        96 .
d---------       128 ..
----------     12288 test1
RedBoot> fs mv tests/test1 tests/test2
RedBoot> fs ls tests
d---------       128 .
d---------       128 ..
----------     12288 test2
RedBoot>