Main Content
ls
List folder contents
Syntax
Description
ls
lists the contents of the current folder.
Examples
Input Arguments
Output Arguments
Tips
To further modify the results of the
ls
command on UNIX platforms, you can add any flags that the operating system supports. For example,ls -c
displays files by timestamp andls -d
displays only directories. For more information, see the UNIXls
documentation.
Alternatives
Use the dir
command to
return file attributes for each file and folder in the output argument.
You can also view files and folders in the Current Folder browser by issuing the
filebrowser
command.
Version History
Introduced before R2006a