3.1.11. ls
- list information about files/folders#
Use
ls
(List) to see what files/folders are in the current location.The default is to list the files in the current directory. Adding options can change how the list is organized.
ls [option] [directory]
List directories
ls -d
Long list format
ls -l
Sort by time (newest first)
ls -t
List files with file size in kilobytes/megabytes/gigabytes
ls -h
Sort alphabetically
ls -X