mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
LS: Condense examples to single line, removing glob and sorting examples.
This commit is contained in:
parent
f1ecb9249e
commit
c0dad323d9
1 changed files with 10 additions and 21 deletions
|
@ -2,33 +2,22 @@
|
|||
|
||||
> List directory contents.
|
||||
|
||||
- List all files, even hidden:
|
||||
- List files one per line:
|
||||
|
||||
`ls -1`
|
||||
|
||||
- List all files, including hidden files:
|
||||
|
||||
`ls -a`
|
||||
|
||||
- List all file names (no extra info):
|
||||
- Long format list (permissions, ownership, size and modification date) of all files:
|
||||
|
||||
`ls -A1`
|
||||
`ls -la`
|
||||
|
||||
- List all files with their rights, groups, owner:
|
||||
|
||||
`ls -l`
|
||||
|
||||
- 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:
|
||||
- Long format list sorted by size (descending):
|
||||
|
||||
`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:
|
||||
|
||||
`ls -r`
|
||||
`ls -lS`
|
||||
|
|
Loading…
Add table
Reference in a new issue