LS

LS command is used to list the files in a directory.

Blue = Dir White = Files Red = Backups
 * LS Color Code:

ls -F Details: / = directory @ = link file * = Executable file
 * Visual Classification of Files With Special Characters

ls -1
 * Display One File Per Line

ls -a
 * To view hidden files

ls -lh
 * Display File Size in Human Readable Format

ls -ld /etc
 * Display Directory Information

ls -lt
 * Order Files Based on Last Modified Time

ls -ltr
 * Order Files Based on Last Modified Time (In Reverse Order)

ls -R
 * Display Files Recursively

ls -lR
 * To view a long list of all the files + directories and sub-directories recursively

ls *.*
 * To view a list of all the files with extensions only

ls -a | more
 * more is a filter for paging through text one screenful at a time

ls -l | grep ^d
 * List only directories

ls -t ls -tr    (in Reverse Order) ls -lhtr     (Large, Human readable, Time sort, Reverse order)
 * List file sorted by modification time


 * References