mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 09:01:38 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/ls
26
tldr/ls
@@ -12,30 +12,30 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ls -1`
|
||||
|
||||
- List [a]ll files, including hidden files:
|
||||
- List all files, including hidden files:
|
||||
|
||||
`ls -a`
|
||||
`ls {{[-a|--all]}}`
|
||||
|
||||
- List files with a trailing symbol to indicate file type (directory/, symbolic_link@, executable*, ...):
|
||||
|
||||
`ls -F`
|
||||
`ls {{[-F|--classify]}}`
|
||||
|
||||
- List [a]ll files in [l]ong format (permissions, ownership, size, and modification date):
|
||||
- List all files in [l]ong format (permissions, ownership, size, and modification date):
|
||||
|
||||
`ls -la`
|
||||
`ls {{[-la|--all -l]}}`
|
||||
|
||||
- List files in [l]ong format with size displayed using [h]uman-readable units (KiB, MiB, GiB):
|
||||
- List files in [l]ong format with size displayed using human-readable units (KiB, MiB, GiB):
|
||||
|
||||
`ls -lh`
|
||||
`ls {{[-lh|-l --human-readable]}}`
|
||||
|
||||
- List files in [l]ong format, sorted by [S]ize (descending) [R]ecursively:
|
||||
- List files in [l]ong format, sorted by [S]ize (descending) recursively:
|
||||
|
||||
`ls -lSR`
|
||||
`ls {{-lSR|-lS --recursive}}`
|
||||
|
||||
- List files in [l]ong format, sorted by [t]ime the file was modified and in [r]everse order (oldest first):
|
||||
- List files in [l]ong format, sorted by [t]ime the file was modified and in reverse order (oldest first):
|
||||
|
||||
`ls -ltr`
|
||||
`ls {{[-ltr|-lt --reverse]}}`
|
||||
|
||||
- Only list [d]irectories:
|
||||
- Only list directories:
|
||||
|
||||
`ls -d */`
|
||||
`ls {{[-d|--directory]}} */`
|
||||
|
||||
Reference in New Issue
Block a user