2019-02-18 08:55:36 +00:00
|
|
|
# vdir
|
|
|
|
|
|
|
|
> List directory contents.
|
|
|
|
> Drop-in replacement for `ls -l`.
|
2021-04-01 16:54:26 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/vdir>.
|
2019-02-18 08:55:36 +00:00
|
|
|
|
|
|
|
- List files and directories in the current directory, one per line, with details:
|
|
|
|
|
|
|
|
`vdir`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- List with sizes displayed in human-readable units (KB, MB, GB):
|
2019-02-18 08:55:36 +00:00
|
|
|
|
|
|
|
`vdir -h`
|
|
|
|
|
|
|
|
- List including hidden files (starting with a dot):
|
|
|
|
|
|
|
|
`vdir -a`
|
|
|
|
|
|
|
|
- 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 --recursive {{path/to/directory}}`
|