Name

fs ls — List filesystem directory

Synopsis

fs ls [ directory ]

Arguments

NameTypeDescriptionDefault
directory StringPathname to directory to list.Current directory

Description

This command prints a list of the contents of the named directory. Each line of the listing starts with a set of UNIX-like access flags, the first character of this will be a ”d“ if this entry is a directory. Following this is the size of the file in bytes and the last item is its name.

Examples

List the current directory:

RedBoot> fs ls
d---------       128 .
d---------       128 ..
----------      4096 image
d---------        96 tests
RedBoot>

List a subdirectory:

RedBoot> fs ls tests
d---------        96 .
d---------       128 ..
----------     16384 test1
RedBoot>