Title: Theory / Unimportant / CS / command line / file / ls;
Tags: computer_to_instruction fromCommand fromCommandLine hasNotNewEffectReturnsMeaning some_instruction mid1516974248815 récupéré
On every note of this deck, unless a note says otherwise:
Page: man

Fla: --all
Effect: do not ignore entries starting with .
Prefix: ls
Flag abbreviation: -a

Fla: --almost-all
Effect: do not list implied . and ..
Prefix: ls
Flag abbreviation: -A

Fla: --escape
Effect: print octal escapes for nongraphic characters
Prefix: ls
Flag abbreviation: -b
Extra: example

Fla: --ignore-backups
Effect: do not list implied entries ending with ~
Prefix: ls
Flag abbreviation: -B

Fla: -c
Effect: sort by, and show, ctime (time of last modification of file status information)
Prefix: ls -lt

Fla: -c
Effect: Show ctime and sort by name
Prefix: ls -l

Fla: -c
Effect: sort by ctime
Prefix: ls

Fla: -C
Effect: list entries by columns
Prefix: ls

Fla: --directory
Effect: list directory entries instead of contents, and do not dereference symbolic links
Prefix: ls
Flag abbreviation: -d

Fla: --dired
Effect: generate output designed for Emacs' dired mode
Prefix: ls
Flag abbreviation: -D

Fla: -f
Effect: do not sort, enable -aU, disable -ls --color
Prefix: ls

Fla: --classify
Effect: append indicator (one of */=>@|) to entries
Prefix: ls
Flag abbreviation: -F

Fla: --file-type
Effect: like -F, except do not append '*'
Prefix: ls

Fla: -g
Effect: like -l, but do not list owner
Prefix: ls

Fla: --no-group
Effect: in a long listing, don't print group names
Prefix: ls
Flag abbreviation: -G

Fla: --human-readable
Effect: print sizes in human readable format (e.g., 1K 234M 2G)
Prefix: ls
Flag abbreviation: -h

Fla: --dereference-command-line
Effect: follow symbolic links listed on the command line
Prefix: ls
Flag abbreviation: -H

Fla: --indicator-style=WORD
Effect: Append indicator with style WORD to entry names: none (default), slash (-p), file-type (--file-type), classify (-F)
Prefix: ls

Fla: --inode
Effect: print the index number of each file
Prefix: ls
Flag abbreviation: -i

Fla: --ignore=Pattern
Effect: do not list implied entries matching shell PATTERN
Prefix: ls
Flag abbreviation: -I

Fla: -k
Effect: like --block-size=1K
Prefix: ls

Fla: -l
Effect: use a long listing format
Prefix: ls

Fla: --dereference
Effect: when showing file information for a symbolic link, show information for the file the link references rather than for the link itself
Prefix: ls
Flag abbreviation: -L

Fla: -m
Effect: fill width with a comma separated list of entries
Prefix: ls

Fla: --numeric-uid-gid
Effect: like -l, but list numeric user and group IDs
Prefix: ls
Flag abbreviation: -n

Fla: --literal
Effect: print raw entry names (don't treat e.g. control characters specially)
Prefix: ls
Flag abbreviation: -N

Fla: -o
Effect: like -l, but do not list group information
Prefix: ls

Fla: --indicator-style=slash
Effect: append / indicator to directories
Prefix: ls
Flag abbreviation: -p

Fla: --hide-control-chars
Effect: print ? instead of non graphic characters
Prefix: ls
Flag abbreviation: -q

Fla: --show-control-chars
Effect: show non graphic characters as-is (default unless program is 'ls' and output is a terminal)
Prefix: ls

Fla: --quote-name
Effect: enclose entry names in double quotes
Prefix: ls
Flag abbreviation: -Q

Fla: --quoting-style=WORD
Effect: use quoting style WORD for entry names: literal, locale, shell, shell-always, c, escape
Prefix: ls

Fla: --reverse
Effect: reverse order while sorting
Prefix: ls
Flag abbreviation: -r

Fla: --recursive
Effect: list subdirectories recursively
Prefix: ls
Flag abbreviation: -R

Fla: --size
Effect: print the allocated size of each file, in blocks
Prefix: ls
Flag abbreviation: -s

Fla: -S
Effect: sort by file size
Prefix: ls

Fla: --sort=WORD
Effect: sort by WORD instead of name: none -U, extension -X, size -S, time -t, version -v
Prefix: ls

Fla: --time=WORD
Effect: with -l, show time as WORD instead of modification time: atime -u, access -u, use -u, ctime -c, or status -c; use specified time as sort key if --sort=time
Prefix: ls

Fla: --time-style=STYLE
Effect: with -l, show times using style STYLE: full-iso, long-iso, iso, locale, +FORMAT. FORMAT is interpreted like 'date'; if FORMAT is FORMAT1<newline>FORMAT2, FORMAT1 applies to non-recent files and FORMAT2 to recent files; if STYLE is prefixed with 'posix-', STYLE takes effect only outside the POSIX locale
Prefix: ls

Fla: -t
Effect: sort by modification time
Prefix: ls

Fla: --tabsize=COLS
Effect: assume tab stops at each COLS instead of 8
Prefix: ls
Flag abbreviation: -T

Fla: -u
Effect: with -lt: sort by, and show, access time with -l: show access time and sort by name otherwise: sort by access time
Prefix: ls

Fla: -U
Effect: do not sort; list entries in directory order
Prefix: ls

Fla: -v
Effect: natural sort of (version) numbers within text
Prefix: ls

Fla: --width=COLS
Effect: assume screen width instead of current value
Prefix: ls
Flag abbreviation: -w

Fla: -x
Effect: list entries by lines instead of by columns
Prefix: ls

Fla: -X
Effect: sort alphabetically by entry extension
Prefix: ls

Fla: -1
Effect: list one file per line
Prefix: ls

Fla: --lcontext
Effect: Display security context. Enable -l. Lines will probably be too wide for most displays.
Prefix: ls

Fla: --context
Effect: Display security context so it fits on most displays. Displays only mode, user, group, security context and file name.
Prefix: ls
Flag abbreviation: -Z

Fla: --scontext
Effect: Display only security context and file name.
Prefix: ls

Fla: --help
Effect: display the help and exit
Prefix: ls

Fla: --version
Effect: output version information and exit
Prefix: ls

Variable: size
Meaning: may be (or may be an integer optionally followed by) one of following: KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
Page: man
Context: ls

Instruction: ls
Page: man
Effect: list directory contents

Fla: --author
Effect: print the author of each file
Prefix: ls -I

Fla: --block-size=SIZE
Effect: use SIZE-byte blocks.
Prefix: ls

Fla: --color[=WHEN]
Effect: colorize the output. WHEN defaults to 'always' or can be 'never' or 'auto'.
Prefix: ls

Fla: --format=WORD
Effect: across -x, commas -m, horizontal -x, long -l, single-column -1, verbose -l, vertical -C
Prefix: ls

Fla: --full-time
Effect: like -l --time-style=full-iso
Prefix: ls

Fla: --group-directories-first
Effect: group directories before files.
Prefix: ls

Fla: --si
Effect: like -h, but use powers of 1000 not 1024
Prefix: ls

Instruction: follow each command line symbolic link that points to a directory
Page: man
Effect: --dereference-command-line-symlink-to-dir
Context: ls

Fla: --hide=Pattern
Effect: do not list implied entries matching shell PATTERN
Prefix: ls