Files
cheatsheet-tldr/tldr/vdir
2025-04-04 00:18:48 +00:00

39 lines
861 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# vdir
> Verbosely list directory contents.
> Drop-in replacement for `ls -l -b`.
> More information: <https://manned.org/vdir>.
- List files and directories in the current directory, one per line, with details:
`vdir`
- List with sizes displayed in human-readable units (KB, MB, GB):
`vdir {{[-h|--human-readable]}}`
- List including hidden files (starting with a dot):
`vdir {{[-a|--all]}}`
- List files and directories sorting entries by size (largest first):
`vdir -S`
- List files and directories sorting entries by modification time (newest first):
`vdir -t`
- List grouping directories first:
`vdir --group-directories-first`
- Recursively list all files and directories in a specific directory:
`vdir {{[-R|--recursive]}} {{path/to/directory}}`