1
1
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:
Igor Chubin 2019-02-23 21:32:29 +00:00
parent 1d99037284
commit 8e61b3742a
2 changed files with 48 additions and 34 deletions

View File

@ -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
# 
# 

View File

@ -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
#
#