Listing Files
suggest changeSyntax
- ls [OPTION]… [FILE]…
Parameters
| Option | Description |
|---|---|
-a, --all |
List all entries, including ones that start with a dot |
-A, --almost-all |
List all entries except . and .. |
-c |
With -lt, sort by change time and show it; with -l, show change time |
-d, --directory |
List directory entries themselves, not their contents |
-h, --human-readable |
Show sizes in human-readable format (for example K, M), using powers of 1024 |
-H, --dereference-command-line |
Follow symbolic links listed on the command line |
-l |
Show contents in long-listing format |
-o |
Long-listing format without group info |
-r, --reverse |
Show contents in reverse order |
-s, --size |
Print the size of each file in blocks |
-S |
Sort by file size |
--sort=WORD |
Sort contents by a word (for example size, version, status) |
-t |
Sort by modification time |
-u |
Sort by last access time |
-v |
Sort by version |
-1 |
List one file per line |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents