From Juneday education
Jump to: navigation, search

ls - list directory contents.

On this page we only give you a short introduction with a few examples. We encourage you to read the manual (man ls).


In computing, ls is a command to list files in Unix and Unix-like operating systems. ls is specified by POSIX and the Single UNIX Specification. When invoked without any arguments, ls lists the files in the current working directory.


Example usage

$ ls
shell-tool-template  tmp
$ ls -1
$ ls -l
total 8
-rw-rw-r-- 1 rikard rikard  157 maj 23 12:12 shell-tool-template
drwxrwxr-x 2 rikard rikard 4096 maj 23 12:13 tmp
$ ls -F
shell-tool-template  tmp/