Skip to content

vdir Command Cheat Sheet

vdir is equivalent to ls -l -b. It lists directory contents in long format.


Synopsis

vdir [OPTION]... [FILE]...

Basic Usage

List Current Directory

vdir
# Output same as: ls -l

List Specific Directory

vdir /etc

Why Use It?

It's mostly for convenience or historical reasons. If you prefer ls -l by default, vdir is your friend. The -b (escape) flag means it prints C-style escapes for non-graphic characters (e.g., newline becomes \n).


Common Options

Human Readable Sizes (-h)

vdir -h

Sort by Time (-t)

vdir -t