mirror of
https://github.com/chubin/cheat.sh.git
synced 2024-11-29 23:36:40 +03:00
18 lines
1.1 KiB
Plaintext
18 lines
1.1 KiB
Plaintext
[38;5;246;03m# To display everything in <dir>, excluding hidden files:[39;00m
|
||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m<[39m[38;5;252mdir>[39m
|
||
|
||
[38;5;246;03m# To display everything in <dir>, including hidden files:[39;00m
|
||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-a[39m[38;5;252m [39m[38;5;252m<[39m[38;5;252mdir>[39m
|
||
|
||
[38;5;246;03m# To display all files, along with the size (with unit suffixes) and timestamp[39;00m
|
||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-lh[39m[38;5;252m [39m[38;5;252m<[39m[38;5;252mdir>[39m
|
||
|
||
[38;5;246;03m# To display files, sorted by size:[39;00m
|
||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-S[39m[38;5;252m [39m[38;5;252m<[39m[38;5;252mdir>[39m
|
||
|
||
[38;5;246;03m# To display directories only:[39;00m
|
||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-d[39m[38;5;252m [39m[38;5;252m*/[39m[38;5;252m [39m[38;5;252m<[39m[38;5;252mdir>[39m
|
||
|
||
[38;5;246;03m# To display directories only, include hidden:[39;00m
|
||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-d[39m[38;5;252m [39m[38;5;252m.*/[39m[38;5;252m [39m[38;5;252m*/[39m[38;5;252m [39m[38;5;252m<[39m[38;5;252mdir>[39m
|