This command lists directory contents.

Command context

Service OS (SVOS>)



Specifies options for the command.


Shows one-column output.


Shows entries which start with a period (.).


Shows output similar to -a, but excludes a period (.) and a double period (..).


Shows output list by columns.


Shows output list by lines.


Shows listing of directory entries instead of contents


Follows symlinks.


Follows symlinks on the command line.




Appends a slash (/) to directory entries.


Appends an indicator to entries. An indicator can be as an asterisk (*) or slash (/) or equal sign (=) or at sign (@) or pipe (|).


Shows the output in a long listing format.


Shows the list inode numbers.


Shows a list of numeric UIDs and GIDs instead of names.


Shows a list of allocated blocks.


Shows in one column a list with the full date and time.


Shows list sizes in human readable format (1K, 243M, 2G) with a one-column output.


Shows in one column a sort in reverse order.


Shows in one column a sort by size.


Shows in the output sort by extension.


Shows in one column a sort by version.


With -l, it shows a sort in one column by ctime.


With -l, it shows a sort by mtime.


With -l, sort by atime.


With -l, it shows a sort in one column by ctime.

-w <N>

Assumes that the terminal has the number of columns wide as specified by <N>.

--color[={always | never | auto}]

Controls color in the output.


Specifies the name of the file to list.




Listing directory contents:

SVOS> ls -la /nos
drwxr-xr-x    3 0        0             4096 Nov 21 03:19 .
drwxr-xr-x   11 0        0              220 Nov 21 03:21 ..
drwx------    2 0        0            16384 Nov 21 03:20 lost+found
-rwxr-xr-x    1 0        0        205957424 Nov 21 03:19 primary.swi