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