Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-13 00:18:34 +00:00
parent ffbd8c31db
commit 904f7fe0c1
46 changed files with 228 additions and 157 deletions

26
tldr/ls
View File

@@ -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]}} */`