DRC
Home
Experience
Toggle Dropdown
• Resume
• Work Experience
Research
Toggle Dropdown
• Papers
• Projects
• Notes
Learn
Projects
Write-Ups
About
Contact
Ls
Back
Bash - Ls
$ ls
Flags, ordered by personal usefulness
-l: List directory contents, one element per line
-a: List all of the directory contents, including those starting with '.' (hidden files)
-h: Print human readable data sizes
Sorting Order:
-r: Reverse sorting order
-t: Sort by time, newest first
-S: Sort by file size, largest first
-X: Sort by extensions
-R: List subdirectories recursively (tree is prettier)
-U: Don't sort. Makes listing lots of files a lot faster