LS Commands Cheat Sheet
Here is a cli commands cheat sheet for LS command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.
What is LS command?
Add some data here
# To display everything in, excluding hidden files: ls # To display everything in , including hidden files: ls -a # To display all files, along with the size (with unit suffixes) and timestamp ls -lh # To display files, sorted by size: ls -S # To display directories only: ls -d */ # To display directories only, include hidden: ls -d .*/ */ # To display all files sorted by changed date, most recent first: ls -ltc # To display files sorted by create time: ls -lt # To display files in a single column: ls -1 # To show ACLs (MacOS): # see also `cheat chmod` for `/bin/chmod` options for ACLs /bin/ls -le
Check out the LS command documentation .
You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again