mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-07 13:47:44 +03:00
updated tests
This commit is contained in:
parent
1d99037284
commit
8e61b3742a
@ -1,17 +1,24 @@
|
||||
[38;5;246m# Displays everything in the target directory[39m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252mpath/to/the/target/directory[39m
|
||||
|
||||
[38;5;246m# Displays everything including hidden files[39m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-a[39m
|
||||
|
||||
[38;5;246m# Displays all files, along with the size (with unit suffixes) and timestamp[39m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-lh[39m[38;5;252m [39m
|
||||
|
||||
[38;5;246m# Display files, sorted by size[39m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-S[39m
|
||||
|
||||
[38;5;246m# Display directories only[39m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-d[39m[38;5;252m [39m[38;5;252m*/[39m
|
||||
|
||||
[38;5;246m# Display directories only, include hidden[39m
|
||||
[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;246m# [39m
|
||||
[38;5;246m# ls[39m
|
||||
[38;5;246m# [39m
|
||||
[38;5;246m# List directory contents.[39m
|
||||
[38;5;246m# [39m
|
||||
[38;5;246m# List files one per line:[39m
|
||||
[38;5;252m [39m[38;5;252mls[39m[38;5;252m [39m[38;5;252m-1[39m
|
||||
[38;5;246m# [39m
|
||||
[38;5;246m# List all files, including hidden files:[39m
|
||||
[38;5;252m [39m[38;5;252mls[39m[38;5;252m [39m[38;5;252m-a[39m
|
||||
[38;5;246m# [39m
|
||||
[38;5;246m# Long format list (permissions, ownership, size and modification date) of all files:[39m
|
||||
[38;5;252m [39m[38;5;252mls[39m[38;5;252m [39m[38;5;252m-la[39m
|
||||
[38;5;246m# [39m
|
||||
[38;5;246m# Long format list with size displayed using human readable units (KB, MB, GB):[39m
|
||||
[38;5;252m [39m[38;5;252mls[39m[38;5;252m [39m[38;5;252m-lh[39m
|
||||
[38;5;246m# [39m
|
||||
[38;5;246m# Long format list sorted by size (descending):[39m
|
||||
[38;5;252m [39m[38;5;252mls[39m[38;5;252m [39m[38;5;252m-lS[39m
|
||||
[38;5;246m# [39m
|
||||
[38;5;246m# Long format list of all files, sorted by modification date (oldest first):[39m
|
||||
[38;5;252m [39m[38;5;252mls[39m[38;5;252m [39m[38;5;252m-ltr[39m
|
||||
[38;5;246m# [39m
|
||||
[38;5;246m# [39m
|
||||
|
@ -1,17 +1,24 @@
|
||||
# Displays everything in the target directory
|
||||
ls path/to/the/target/directory
|
||||
|
||||
# Displays everything including hidden files
|
||||
ls -a
|
||||
|
||||
# Displays all files, along with the size (with unit suffixes) and timestamp
|
||||
ls -lh
|
||||
|
||||
# Display files, sorted by size
|
||||
ls -S
|
||||
|
||||
# Display directories only
|
||||
ls -d */
|
||||
|
||||
# Display directories only, include hidden
|
||||
ls -d .*/ */
|
||||
#
|
||||
# ls
|
||||
#
|
||||
# List directory contents.
|
||||
#
|
||||
# List files one per line:
|
||||
ls -1
|
||||
#
|
||||
# List all files, including hidden files:
|
||||
ls -a
|
||||
#
|
||||
# Long format list (permissions, ownership, size and modification date) of all files:
|
||||
ls -la
|
||||
#
|
||||
# Long format list with size displayed using human readable units (KB, MB, GB):
|
||||
ls -lh
|
||||
#
|
||||
# Long format list sorted by size (descending):
|
||||
ls -lS
|
||||
#
|
||||
# Long format list of all files, sorted by modification date (oldest first):
|
||||
ls -ltr
|
||||
#
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user