فهرست منبع

LS: Condense examples to single line, removing glob and sorting examples.

Peter Tripp 9 سال پیش
والد
کامیت
c0dad323d9
1فایلهای تغییر یافته به همراه9 افزوده شده و 20 حذف شده
  1. 9 20
      pages/common/ls.md

+ 9 - 20
pages/common/ls.md

@@ -2,33 +2,22 @@
 
 > List directory contents.
 
-- List all files, even hidden:
+- List files one per line:
 
-`ls -a`
+`ls -1`
 
-- List all file names (no extra info):
+- List all files, including hidden files:
 
-`ls -A1`
+`ls -a`
 
-- List all files with their rights, groups, owner:
+- Long format list (permissions, ownership, size and modification date) of all files:
 
-`ls -l`
+`ls -la`
 
-- List all files and display the file size in a human readable format:
+- Long format list with size displayed using human readable units (KB,MB,GB):
 
 `ls -lh`
 
-- List all files with a prefix/suffix:
-
-`ls {{prefix}}*`
-`ls *{{suffix}}`
-
-- Sort the results by size, last modified date, or creation date:
-
-`ls -S`
-`ls -t`
-`ls -U`
-
-- Reverse the order of the results:
+- Long format list sorted by size (descending):
 
-`ls -r`
+`ls -lS`