You are here : cliUNIXls

ls - UNIX

Lists all files and Directories.

ls -l --- lists your files in 'long format', which contains lots of useful information, e.g. the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified.
ls -a --- lists all files, including the ones whose filenames begin in a dot, which you do not always want to see.
There are many more options, for example to list files by size, by date, recursively etc.


Syntax

ls


Example

ls
ls -l
ls -a


Output / Return Value


Limitations


Alternatives / See Also


Reference