Linux Command - ls
ls - list files
ls
ls -l
ls -la
ls -ltrh
-l | long listing format |
-a | all, don’t ignore hidden files |
-A | almost all, ignore . and .. |
-t | sort by time, shortest first ( last updated ) |
-r | reverse sort |
-h | human readable size ( show in K, M, G ) |
-R | recursive, list sub dirs recursively |
-s | show size in blocks |
-S | Sort by size, largest first |
-1 | one column but not long listing |
-d | show directories, not contents |
-i | show inode number |
-q | hide control chars |
-b | show escapes for nongraphic chars |
-B | ignore backups ( files ending with ~ ) |
-X | sort by extension, alphabetically |
-Z | show security context |
–color | colorize output |