mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
18 lines
394 B
Plaintext
18 lines
394 B
Plaintext
# To display everything in <dir>, excluding hidden files:
|
|
ls <dir>
|
|
|
|
# To display everything in <dir>, including hidden files:
|
|
ls -a <dir>
|
|
|
|
# To display all files, along with the size (with unit suffixes) and timestamp
|
|
ls -lh <dir>
|
|
|
|
# To display files, sorted by size:
|
|
ls -S <dir>
|
|
|
|
# To display directories only:
|
|
ls -d */ <dir>
|
|
|
|
# To display directories only, include hidden:
|
|
ls -d .*/ */ <dir>
|