ls
- list information about files/folders#
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