vdir
Quick Reference
Command Name:
vdir
Category:
file system
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
Syntax
vdir [OPTION]... [FILE]...
Options
The vdir command accepts all the same options as the ls command, since it's effectively ls with the -l option already set. Here are some commonly used options:
| Option | Description |
|---|---|
-a, --all |
Do not ignore entries starting with . |
-A, --almost-all |
Do not list implied . and .. |
--author |
Print the author of each file |
-b, --escape |
Print C-style escapes for nongraphic characters |
--block-size=SIZE |
Scale sizes by SIZE before printing them |
-B, --ignore-backups |
Do not list implied entries ending with ~ |
-c |
Sort by change time, newest first |
-C |
List entries by columns |
--color[=WHEN] |
Colorize the output; WHEN can be 'always', 'auto', or 'never' |
-d, --directory |
List directories themselves, not their contents |
-D, --dired |
Generate output designed for Emacs' dired mode |
-f |
Do not sort, enable -aU, disable -ls --color |
-F, --classify |
Append indicator (one of */=>@|) to entries |
--file-type |
Likewise, except do not append '*' |
--format=WORD |
Format output as WORD list: across (-x), commas (-m), horizontal (-x), long (-l), single-column (-1), verbose (-l), vertical (-C) |
--full-time |
Like -l --time-style=full-iso |
-g |
Like -l, but do not list owner |
--group-directories-first |
Group directories before files |
-G, --no-group |
In a long listing, don't print group names |
-h, --human-readable |
Print sizes like 1K, 234M, 2G, etc. |
--si |
Likewise, but use powers of 1000 not 1024 |
-H, --dereference-command-line |
Follow symbolic links listed on the command line |
-i, --inode |
Print the index number of each file |
-I, --ignore=PATTERN |
Do not list implied entries matching shell PATTERN |
-k, --kibibytes |
Default to 1024-byte blocks for disk usage |
-L, --dereference |
When showing file information for a symbolic link, show information for the file the link references rather than for the link itself |
-m |
Fill width with a comma separated list of entries |
-n, --numeric-uid-gid |
Like -l, but list numeric user and group IDs |
-N, --literal |
Print raw entry names (don't treat e.g. control characters specially) |
-o |
Like -l, but do not list group information |
-p, --indicator-style=slash |
Append / indicator to directories |
-q, --hide-control-chars |
Print ? instead of nongraphic characters |
--show-control-chars |
Show nongraphic characters as-is (the default, unless program is 'ls' and output is a terminal) |
-Q, --quote-name |
Enclose entry names in double quotes |
--quoting-style=WORD |
Use quoting style WORD for entry names: literal, locale, shell, shell-always, shell-escape, shell-escape-always, c, escape |
-r, --reverse |
Reverse order while sorting |
-R, --recursive |
List subdirectories recursively |
-s, --size |
Print the allocated size of each file, in blocks |
-S |
Sort by file size, largest first |
--sort=WORD |
Sort by WORD instead of name: none (-U), size (-S), time (-t), version (-v), extension (-X) |
--time=WORD |
With -l, show time as WORD instead of default modification time: atime or access or use (-u); ctime or status (-c); also use specified time as sort key if --sort=time (newest first) |
--time-style=STYLE |
With -l, show times using style STYLE: full-iso, long-iso, iso, locale, or +FORMAT |
-t |
Sort by modification time, newest first |
-T, --tabsize=COLS |
Assume tab stops at each COLS instead of 8 |
-u |
With -lt: sort by, and show, access time; with -l: show access time and sort by name; otherwise: sort by access time, newest first |
-U |
Do not sort; list entries in directory order |
-v |
Natural sort of (version) numbers within text |
-w, --width=COLS |
Set output width to COLS. 0 means no limit |
-x |
List entries by lines instead of by columns |
-X |
Sort alphabetically by entry extension |
-Z, --context |
Print any security context of each file |
-1 |
List one file per line |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the vdir command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
vdir
vdir /etc
vdir -h
Advanced Examples:
vdir -a
vdir -S
vdir -t