Skip to content

behavior_class

snsk edited this page Feb 7, 2022 · 11 revisions

Which files are listed

Arguments Value

(-a, -all), (-A, --almost-all), (-B, --ignore-backups), (-d, --directory), (-H, --dereference-command-line), dereference-command-line-symlink-to-dir, group-directories-first, hide=PATTERN, -I pattern, (-L, --dereference), (-R, --recursive)

These options determine which files ls lists information for. By default, ls lists files and the contents of any directories on the command line, except that in directories it ignores files whose names start with ‘.’.

What information is listed

Arguments Value

--author, (-D, --dired), --full-time, -g, (-G, --no-group), (-h, --human-readable), (-i, --inode), (-l, --format=long, --format=verbose), (-n, --numeric-uid-gid), -o, (-s, --size), --si, (-Z, --context)

These options affect the information that ls displays. By default, only file names are shown.

Sorting the output

Arguments Value

(-c, --time = ctime', --time = status), -f, (-r, --reverse), (-S, --sort=size), (-t, --sort=time), (-u, --time=atime, --time=access, --time=use), (--time=birth, --time=creation), (-U, --sort=none), (-v, --sort=width), (-X, --sort=extension)

These options change the order in which ls sorts the information it outputs. By default, sorting is done by character code (e.g., ASCII order).

General output formatting

TBD.

Formatting file timestamps

TBD.

Formatting the file names

TBD.

Clone this wiki locally