Files
cheatsheet-tldr/tldr/linux/dir
2025-03-13 00:18:34 +00:00

31 lines
620 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# dir
> List directory contents using one line per file, special characters are represented by backslash escape sequences.
> Works as `ls -C --escape`.
> More information: <https://manned.org/dir>.
- List all files, including hidden files:
`dir {{[-a|--all]}}`
- List files including their author (`-l` is required):
`dir -l --author`
- List files excluding those that match a specified blob pattern:
`dir --hide {{pattern}}`
- List subdirectories recursively:
`dir {{[-R|--recursive]}}`
- Display help:
`dir --help`