Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

dir

v(uutils coreutils) 0.1.0

Options

--help

ls-help-print-help

--format

ls-help-set-display-format

-C

ls-help-display-files-columns

--long, -l

ls-help-display-detailed-info

-x

ls-help-list-entries-rows

--tabsize=<COLS>, -T <COLS>

ls-help-assume-tab-stops

-m

ls-help-list-entries-commas

--zero

ls-help-list-entries-nul

--dired, -D

ls-help-generate-dired-output

--hyperlink=<WHEN>

ls-help-hyperlink-filenames

-1

ls-help-list-one-file-per-line

-o

ls-help-long-format-no-group

-g

ls-help-long-no-owner

--numeric-uid-gid, -n

ls-help-long-numeric-uid-gid

--quoting-style

ls-help-set-quoting-style

--literal, -N

ls-help-literal-quoting-style

--escape, -b

ls-help-escape-quoting-style

--quote-name, -Q

ls-help-c-quoting-style

--hide-control-chars, -q

ls-help-replace-control-chars

--show-control-chars

ls-help-show-control-chars

--time=<field>

ls-help-show-time-field

-c

ls-help-time-change

-u

ls-help-time-access

--hide=<PATTERN>

ls-help-hide-pattern

--ignore=<PATTERN>, -I <PATTERN>

ls-help-ignore-pattern

--ignore-backups, -B

ls-help-ignore-backups

--sort=<field>

ls-help-sort-by-field

-S

ls-help-sort-by-size

-t

ls-help-sort-by-time

-v

ls-help-sort-by-version

-X

ls-help-sort-by-extension

-U

ls-help-sort-none

--dereference, -L

ls-help-dereference-all

--dereference-command-line-symlink-to-dir

ls-help-dereference-dir-args

--dereference-command-line, -H

ls-help-dereference-args

--no-group, -G

ls-help-no-group

--author

ls-help-author

--all, -a

ls-help-all-files

--almost-all, -A

ls-help-almost-all

--directory, -d

ls-help-directory

--human-readable, -h

ls-help-human-readable

--kibibytes, -k

ls-help-kibibytes

--si

ls-help-si

--block-size=<BLOCK_SIZE>

ls-help-block-size

--inode, -i

ls-help-print-inode

--reverse, -r

ls-help-reverse-sort

--recursive, -R

ls-help-recursive

--width=<COLS>, -w <COLS>

ls-help-terminal-width

--size, -s

ls-help-allocation-size

--color

ls-help-color-output

--indicator-style

ls-help-indicator-style

--classify=<when>, -F <when>

ls-help-classify

--file-type

ls-help-file-type

-p

ls-help-slash-directories

--time-style=<TIME_STYLE>

ls-help-time-style

--full-time

ls-help-full-time

--context, -Z

ls-help-context

--group-directories-first

ls-help-group-directories-first

Examples

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

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.