neulab/tldr huggingface dataset:
--prompt Prompt before each invocation of the diff tool. This is the default behaviour; the option is provided to override any configuration settings.
--rotate-to=<file> Start showing the diff for the given path, the paths before it will move to end and output.
--skip-to=<file> Start showing the diff for the given path, skipping all the paths before it.
-t <tool>, --tool=<tool> Use the diff tool specified by <tool>. Valid values include emerge, kompare, meld, and vimdiff. Run git difftool --tool-help for the list of valid <tool> settings.
If a diff tool is not specified, git difftool will use the configuration variable diff.tool. If the configuration variable diff.tool is not set, git difftool will pick a suitable default.
You can explicitly provide a full path to the tool by setting the configuration variable difftool.<tool>.path. For example, you can configure the absolute path to kdiff3 by setting difftool.kdiff3.path. Otherwise, git difftool assumes the tool is available in PATH.
Instead of running one of the known diff tools, git difftool can be customized to run an alternative program by specifying the command line to invoke in a configuration variable difftool.<tool>.cmd.
When git difftool is invoked with this tool (either through the -t or --tool option or the diff.tool configuration variable) the configured command line will be invoked with the following variables available: $LOCAL is set to the name of the temporary file containing the contents of the diff pre-image and $REMOTE is set to the name of the temporary file containing the contents of the diff post-image. $MERGED is the name of the file which is being compared.  $BASE is provided for compatibility with custom merge tool commands and has the same value as $MERGED.
--tool-help Print a list of diff tools that may be used with --tool.
--[no-]symlinks git difftool's default behavior is create symlinks to the working tree when run in --dir-diff mode and the right-hand side of the comparison yields the same content as the file in the working tree.
Specifying --no-symlinks instructs git difftool to create copies instead.  --no-symlinks is the default on Windows.
-x <command>, --extcmd=<command> Specify a custom command for viewing diffs.  git-difftool ignores the configured defaults and runs $command $LOCAL $REMOTE when this option is specified. Additionally, $BASE is set in the environment.
-g, --[no-]gui When git-difftool is invoked with the -g or --gui option the default diff tool will be read from the configured diff.guitool variable instead of diff.tool. The --no-gui option can be used to override this setting. If diff.guitool is not set, we will fallback in the order of merge.guitool, diff.tool, merge.tool until a tool is found.
--[no-]trust-exit-code git-difftool invokes a diff tool individually on each file. Errors reported by the diff tool are ignored by default. Use --trust-exit-code to make git-difftool exit when an invoked diff tool returns a non-zero exit code.
git-difftool will forward the exit code of the invoked tool when --trust-exit-code is used.
See git-diff(1) for the full list of supported options.
git difftool falls back to git mergetool config variables when the difftool equivalents have not been defined.
diff.guitool The default diff tool to use when --gui is specified.
difftool.<tool>.path Override the path for the given tool. This is useful in case your tool is not in the PATH.
difftool.<tool>.cmd Specify the command to invoke the specified diff tool.
See the --tool=<tool> option above for more details.
difftool.prompt Prompt before each invocation of the diff tool.
difftool.trustExitCode Exit difftool if the invoked diff tool returns a non-zero exit status.
See the --trust-exit-code option above for more details.
git-diff(1) Show changes between commits, commit and working tree, etc
git-mergetool(1) Run merge conflict resolution tools to resolve merge conflicts
git-config(1) Get and set repository or global options
FD(1)                        General Commands Manual                       FD(1)
fd - find entries in the filesystem
fd [-HIEsiaLp0hV] [-d depth] [-t filetype] [-e ext] [-E exclude] [-c when] [-j num] [-x cmd] [pattern] [path...]
fd is a simple, fast and user-friendly alternative to find(1).
-H, --hidden Include hidden files and directories in the search results (default: hidden files and directories are skipped). The flag can be overridden with '--no-hidden'.
-I, --no-ignore Show search results from files and directories that would otherwise be ignored by
• .gitignore
• .git/info/exclude
• The global gitignore configuration (by default $HOME/.config/git/ignore)
• .ignore
• .fdignore
• The global fd ignore file (usually $HOME/.config/fd/ignore )
The flag can be overridden with '--ignore'.
-u, --unrestricted Alias for '--no-ignore'. Can be repeated; '-uu' is an alias for '--no-ignore --hidden'.
--no-ignore-vcs Show search results from files and directories that would otherwise be ignored by gitignore files including .gitignore, .git/info/exclude, and the global gitignore configuration (core.excludesFile git setting, which defaults to $HOME/.config/git/ignore).  The flag can be overridden with '--ignore-vcs'.
-s, --case-sensitive Perform a case-sensitive search. By default, fd uses case- insensitive searches, unless the pattern contains an uppercase character (smart case).
-i, --ignore-case Perform a case-insensitive search. By default, fd uses case- insensitive searches, unless the pattern contains an uppercase character (smart case).
-g, --glob Perform a glob-based search instead of a regular expression search.  If combined with the '--full-path' option, '**' can be used to match multiple path components.
--regex Perform a regular-expression based search (default). This can be used to override --glob.
-F, --fixed-strings Treat the pattern as a literal string instead of a regular expression. Note that this also performs substring comparison. If you want to match on an exact filename, consider using '--glob'.
-a, --absolute-path Shows the full path starting from the root as opposed to relative paths.  The flag can be overridden with '--relative-path'.
-l, --list-details Use a detailed listing format like 'ls -l'. This is basically an alias for '--exec-batch ls -l' with some additional 'ls' options. This can be used to see more metadata, to show symlink targets and to achieve a deterministic sort order.
-L, --follow By default, fd does not descend into symlinked directories. Using this flag, symbolic links are also traversed. The flag can be overridden with '--no-follow'.
-p, --full-path By default, the search pattern is only matched against the filename (or directory name). Using this flag, the pattern is matched against the full path.
-0, --print0 Separate search results by the null character (instead of newlines). Useful for piping results to xargs.
--max-results count Limit the number of search results to 'count' and quit immediately.
-1     Limit the search to a single result and quit immediately. This is an alias for '--max-results=1'.
-q, --quiet When the flag is present, the program does not print anything and will instead exit with a code of 0 if there is at least one search result.  Otherwise, the exit code will be 1.  This is mainly for usage in scripts and can be faster than checking for output because the search can be stopped early after the first match. --has-results can be used as an alias.
--show-errors Enable the display of filesystem errors for situations such as insufficient permissions or dead symlinks.
--one-file-system, --mount, --xdev By default, fd will traverse the file system tree as far as other options dictate. With this flag, fd ensures that it does not descend into a different file system than the one it started in. Comparable to the -mount or -xdev filters of find(1).
-h, --help Print help information.
-V, --version Print version information.
-d, --max-depth d Limit directory traversal to at most d levels of depth. By default, there is no limit on the search depth.
--min-depth d Only show search results starting at the given depth. See also: '--max-depth' and '--exact-depth'.
--exact-depth d Only show search results at the exact given depth. This is an alias for '--min-depth <depth> --max-depth <depth>'.
--prune Do not traverse into matching directories.
-t, --type filetype Filter search by type:
f, file regular files
d, directory directories
l, symlink symbolic links
s, socket sockets
p, pipe named pipes (FIFOs)
x, executable executable (files)
e, empty empty files or directories
This option can be specified more than once to include multiple file types.  Searching for '--type file --type symlink' will show both regular files as well as symlinks. Note that the 'executable' and 'empty' filters work differently: '--type executable' implies '--type file' by default. And '--type empty' searches for empty files and directories, unless either '--type file' or '--type directory' is specified in addition.
Examples: - Only search for files: fd --type file … fd -tf … - Find both files and symlinks fd --type file --type symlink … fd -tf -tl … - Find executable files: fd --type executable fd -tx - Find empty files: fd --type empty --type file fd -te -tf - Find empty directories: fd --type empty --type directory fd -te -td
-e, --extension ext Filter search results by file extension ext.  This option can be used repeatedly to allow for multiple possible file extensions.
If you want to search for files without extension, you can use the regex '^[^.]+$' as a normal search pattern.
-E, --exclude pattern Exclude files/directories that match the given glob pattern.  This overrides any other ignore logic.  Multiple exclude patterns can be specified.  Examples: --exclude '*.pyc' --exclude node_modules
--ignore-file path Add a custom ignore-file in '.gitignore' format.  These files have a low precedence.
-c, --color when Declare when to colorize search results:
auto   Colorize output when standard output is connected to terminal (default).
never  Do not colorize output.
always Always colorize output.
-j, --threads num Set number of threads to use for searching & executing (default: number of available CPU cores).
-S, --size size Limit results based on the size of files using the format <+-><NUM><UNIT>
'+'    file size must be greater than or equal to this
'-'    file size must be less than or equal to this
If neither '+' nor '-' is specified, file size must be exactly equal to this.
'NUM'  The numeric size (e.g. 500)
'UNIT' The units for NUM. They are not case-sensitive.  Allowed unit values:
'b'    bytes
'k'    kilobytes (base ten, 10^3 = 1000 bytes)
'm'    megabytes
'g'    gigabytes
't'    terabytes
'ki'   kibibytes (base two, 2^10 = 1024 bytes)
'mi'   mebibytes
'gi'   gibibytes
'ti'   tebibytes
--changed-within date|duration Filter results based on the file modification time.  Files with modification times greater than the argument will be returned. The argument can be provided as a duration (10h, 1d, 35min) or as a specific point in time in either full RFC3339 format with time zone, or as a date or datetime in the local time zone (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS).  --change-newer-than can be used as an alias.
Examples: --changed-within 2weeks --change-newer-than "2018-10-27 10:00:00"
--changed-before date|duration Filter results based on the file modification time.  Files with modification times less than the argument will be returned.  The argument can be provided as a duration (10h, 1d, 35min) or as a specific point in time in either full RFC3339 format with time zone, or as a date or datetime in the local time zone (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS).  --change-older-than can be used as an alias.
Examples: --changed-before "2018-10-27 10:00:00" --change-older-than 2weeks
-o, --owner [user][:group] Filter files by their user and/or group. Format: [(user|uid)][:(group|gid)]. Either side is optional. Precede either side with a '!' to exclude files instead.
Examples: --owner john --owner :students --owner "!john:students"
--base-directory path Change the current working directory of fd to the provided path. This means that search results will be shown with respect to the given base path. Note that relative paths which are passed to fd via the positional path argument or the --search-path option will also be resolved relative to this directory.
--path-separator separator Set the path separator to use when printing file paths. The default is the OS-specific separator ('/' on Unix, '\' on Windows).
--search-path search-path Provide paths to search as an alternative to the positional path argument. Changes the usage to ´fd [FLAGS/OPTIONS] --search-path PATH --search-path PATH2 [PATTERN]´
-x, --exec command Execute command for each search result in parallel (use --threads=1 for sequential command execution).
Note that all subsequent positional arguments are considered to be arguments to the command - not to fd.  It is therefore recommended to place the -x/--exec option last. Alternatively, you can supply a ';' argument to end the argument list and continue with more fd options.  Most shells require ';' to be escaped: '\;'.
The following placeholders are substituted before the command is executed:
{}     path (of the current search result)
{/}    basename
{//}   parent directory
{.}    path without file extension
{/.}   basename without file extension
If no placeholder is present, an implicit "{}" at the end is assumed.
- find all *.zip files and unzip them:
fd -e zip -x unzip
- find *.h and *.cpp files and run "clang-format -i .." for each of them:
fd -e h -e cpp -x clang-format -i
- Convert all *.jpg files to *.png files:
fd -e jpg -x convert {} {.}.png
-X, --exec-batch command Execute command once, with all search results as arguments.  One of the following placeholders is substituted before the command is executed:
{}     path (of all search results)
- Find all test_*.py files and open them in your favorite editor:
fd -g 'test_*.py' -X vim
Note that this executes a single "vim" process with all search results as arguments.
- Find all *.rs files and count the lines with "wc -l ...":
fd -e rs -X wc -l
The regular expression syntax used by fd is documented here:
https://docs.rs/regex/1.0.0/regex/#syntax
The glob syntax is documented here:
https://docs.rs/globset/#syntax
LS_COLORS Determines how to colorize search results, see dircolors(1).
NO_COLOR Disables colorized output.
XDG_CONFIG_HOME, HOME Used to locate the global ignore file. If XDG_CONFIG_HOME is set, use $XDG_CONFIG_HOME/fd/ignore.  Otherwise, use $HOME/.config/fd/ignore.
Find files and directories that match the pattern 'needle': $ fd needle
Start a search in a given directory (/var/log): $ fd nginx /var/log
Find all Python files (all files with the extension .py) in the current directory: $ fd -e py
Open all search results with vim: $ fd pattern -X vim
--batch-size size Pass at most size arguments to each call to the command given with -X.
SEE ALSO find(1)
GVPACK(1)                    General Commands Manual                   GVPACK(1)
gvpack - merge and pack disjoint graphs
gvpack [ -nguv?  ] [ -mmargin ] [ -arrayopts ] [ -ooutfile ] [ -sgraph_name ] [ -Gname=value ] [ files ]
gvpack reads in a stream of graphs, combines the graphs into a single layout, and produces a single graph serving as the union of the input graphs. The input graphs must be in dot format, and must have all necessary layout information. Acceptable input is produced by applying a Graphviz layout program, such as dot or neato, with no -T flag.
By default, the packing is done at the cluster level. Thus, parts of one graph will not intrude into any top‐level clusters or overlap any nodes or edges of another.
The output of gvpack can be used to produce concrete output by applying neato -s -n2 with the desired -T flag.
-g     Combines the graphs at the graph level. This uses more space, but prevents parts of one graph from occurring between parts of another.
-array[_flags][n] Combines the graphs at the graph level, placing them in an array. By default, the layout is done in row-major order. The number of columns used is roughly the square root of the number of graphs. If the optional integer n is supplied, this indicates the number of columns to use.
If optional flags are supplied, these consist of an underscore followed by any of the letters "c", "t", "b", "l", "r", "u" or "i".  If "c" is supplied, the graphs are packed in column-major order, in which case a final integer specifies the number of rows.  The flags "t", "b", "l", "r" indicate that components are aligned along the top, bottom, left or right, respectively.  By default, the insertion order is determined by sorting the graphs by size, largest to smallest. If the "u" flag is set, the graphs are sorted based on the non-negative integer sortv attribute attached to each graph. The "i" flag indicates that no sorting is done, with the graphs inserted in input order.
-Gname=value Specifies attributes to be added to the resulting union graph. For example, this can be used to specify a graph label.
-mmargin Packs the graphs allowing a margin of output points around the parts.
-n     Combines the graphs at the node level. Clusters are ignored in the packing.
-ooutput Prints output to the file output. If not given, gvpack uses stdout.
-sgraph_name Use graph_name as the name of the root graph. By default, "root" is used.
-u     Don't pack the graphs. Just combine them into a single graph.
-v     Verbose mode.
-?     Prints usage information and exit.
gvpack returns 0 if there were no problems, and non‐zero otherwise.
ccomps -x abc.gv | dot | gvpack | neato -s -n2 -Tps This pipeline decomposes the graph in abc.gv into its connected components, lays out each using dot, packs them all together again, and produces the final drawing in PostScript. Of course, there is nothing to prevent one from using different layouts for each component.
All the input graphs must be directed or undirected.
An input graph should not have a label, since this will be used in its layout. Since gvpack ignores root graph labels, resulting layout may contain some extra space.
gvpack unsets the bounding box attribute of all non‐cluster subgraphs.
gvpr(1), dot(1), neato(1), twopi(1), ccomps(1), libpack(3)
COUCHDB(1)                        User Commands                       COUCHDB(1)
couchdb - Apache CouchDB database server
couchdb [OPTION]
The couchdb command runs the Apache CouchDB server.
Erlang is called with:
-os_mon start_memsup false     start_cpu_sup false disk_space_check_interval 1     disk_almost_full_threshold 1 -sasl errlog_type error +K true +A 4
Erlang inherits the environment of this command.
You can override these options using the environment:
ERL_AFLAGS, ERL_FLAGS, ERL_ZFLAGS
See erl(1) for more information about the environment variables.
The exit status is 0 for success or 1 for failure.
-h     display a short help message and exit
-V     display version information and exit
-a FILE add configuration FILE to chain
-A DIR add configuration DIR to chain
-n     reset configuration file chain (including system default)
-c     print configuration file chain and exit
-i     use the interactive Erlang shell
-b     spawn as a background process
-p FILE set the background PID FILE (overrides system default)
-r SECONDS respawn background process after SECONDS (defaults to no respawn)
-o FILE redirect background stdout to FILE (defaults to couchdb.stdout)
-e FILE redirect background stderr to FILE (defaults to couchdb.stderr)
-s     display the status of the background process
-k     kill the background process, will respawn if needed
-d     shutdown the background process
Report bugs at <https://issues.apache.org/jira/browse/COUCHDB>.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
XFCE4-SCREENSHOOTER(1)            User Commands           XFCE4-SCREENSHOOTER(1)
xfce4-screenshooter - manual page for xfce4-screenshooter 1.9.9
Usage: xfce4-screenshooter [OPTION?]
Help Options: -h, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options
Application Options: -c, --clipboard Copy the screenshot to the clipboard
-d, --delay Delay in seconds before taking the screenshot
-f, --fullscreen Take a screenshot of the entire screen
-m, --mouse Display the mouse on the screenshot
--no-border Removes the window border from the screenshot
-o, --open Application to open the screenshot
-r, --region Select a region to be captured by clicking a point of the screen without releasing the mouse button, dragging your mouse to the other corner of the region, and releasing the mouse button.
-s, --save File path or directory where the screenshot will be saved, accepts png, jpg and bmp extensions
-i, --imgur Host the screenshot on Imgur, a free online image hosting service
-V, --version Version information
-w, --window Take a screenshot of the active window
--display=DISPLAY X display to use
ELM(1L)                                                                  ELM(1L)
elm - an interactive mail system
elm [ -achkKmrtwz ] [ -f alternate-folder ] [ -d debug-level ] elm [ -s subject ] list of aliases or addresses
Elm is an interactive screen-oriented mailer program that supersedes mail and mailx.
There are three main ways to use the elm mailer.  One way to use the mailer is to specify a list of addresses on the command line when the mailer is invoked.  This will allow sending of a single message to the specified recipients with all the options usually available in the elm system itself. For example, the command
elm -s testing joe
would initiate the sending of a message to the alias joe with the subject "testing" indicated and would put you into an editor for you to enter the text of the message.  If the subject flag and argument were not present, you would be prompted for a message subject.
The second way, used most commonly when transmitting files and such, is to specify the subject of the message and the recipients using the command line and redirect a file as standard input.  For example, the command
elm -s testing joe < test.c
would mail a copy of the file test.c to alias joe, with the subject "testing" indicated.  The subject flag and argument are optional.
The third way, elm is invoked with neither subject nor addresses specified on the command line and without standard input redirected.  You can then read any messages in your incoming mailbox (or specified folder), reply to messages in the mailbox, mail messages, etc.
-a      Arrow - force the arrow cursor (instead of the inverse bar)
-A file Attach file. Look also option -i.  To get this to work correctly, in file "$HOME/.elm/mime.types" must be mapping from extension of filename to mime type.
-c      Checkalias - expand the following aliases and return.
-d level Debug - set specified debug level - Output to "$HOME/ELM:debug.info"
-f alternative-folder Folder - read folder (specified) rather than the incoming mailbox.
-h      Help - give a list of starting options.
-i file Include - include prepared file in edit buffer for sending. Look also option -A.
-?      Synonymous with the "-h" option.
-k      Ignored.
Keypad - force knowledge of HP terminal keyboard, to allow the use of the NEXT, PREV and HOME/SHIFT-HOME keys.
-K      Ignored.
Keypad + softkeys - enable use of softkeys on HP terminals only.
-m      Menu off - Use the extra lines for more message headers.
-s subj Subject - specify subject for message to mail.
-t      tite - turn off usage of the termcap/terminfo ti/te sequence.
-v      Version - print version and configuration information.
-w      Write .elm/elmrc in startup. Useful if your .elm/elmrc have errors.
-z      Zero - don't enter Elm if no mail is pending.
Elm Development Group
The Elm documentation package, including: The Elm Users Guide, The Elm Reference Guide, The Elm Alias System Users Guide, The Elm Forms Mode Guide, The Elm Filter Guide, The Elm Configuration Guide
checkalias(1L), frm(1L), mail(1), mailx(1), newalias(1L), printmail(1L), readmsg(1L)
/usr/lib/elm-me+/elm-help.*       help files /etc/elm-me+/aliases.text         system alias source /etc/elm-me+/aliases.dir          system alias dbz directory table /etc/elm-me+/aliases.pag          system alias dbz hash table /etc/elm-me+/aliases              system alias data table /etc/elm-me+/aliases.hash         system alias hash table /etc/elm-me+/aliases.data         system alias data table $HOME/.elm/aliases.text           user alias source $HOME/.elm/aliases.dir            user alias dbz directory table $HOME/.elm/aliases.pag            user alias dbz hash table $HOME/.elm/aliases                user alias data table $HOME/.elm/elmrc                  customized mailer parameters $HOME/.elm/elmheaders             customized message headers /tmp/snd.$$                       outgoing mail edit buffer /tmp/mbox.logname            temporary mailbox $HOME/ELM:debug.info              Debug output if turned on
Should know about keyboards/softkey terminals other than HP.  (If only termcap were that powerful!)
Syd Weinstein  elm@DSI.COM    (dsinc!elm)
Copyright 1988-1992 by The USENET Community Trust Derived from Elm 2.0,  Copyright 1986, 1987 by Dave Taylor
xmount(1)                            xmount                            xmount(1)
xmount - Tool to crossmount between multiple input and output harddisk image files
xmount [fopts] <xopts> <mntp>
xmount allows you to convert on-the-fly between multiple input and output harddisk image formats. xmount creates a virtual file system using FUSE (Filesystem in Userspace) that contains a virtual representation of the input image.
The virtual representation can be in raw DD, Apple's Disk Image format (DMG), VirtualBox's virtual disk file format (VDI), Microsoft's Virtual Hard Disk Image format (VHD) or in VmWare's VMDK file format.
Input images can be raw DD, EWF (Expert Witness Compression Format) or AFF (Advanced Forensic Format) files.
In addition, xmount also supports virtual write access to the output files that is redirected to a cache file. This makes it possible to boot acquired harddisk images using QEMU, KVM, VirtualBox, VmWare or alike.
fopts: (Options specific to FUSE) -d: Enable FUSE's and xmount's debug mode. -h: Display this help message. -s: Run single threaded. -o no_allow_other: Disable automatic addition of FUSE's allow_other option. -o <fmopts> : Specify fuse mount options. Will also disable automatic addition of FUSE's allow_other option!
xopts: (Options specific to xmount) --cache <cfile> : Enable virtual write support. <cfile> specifies the cache file to use. --in <itype> <ifile> : Input image format and source file(s). May be specified multiple times. For a list of supported <itype> types, run xmount --info and look under "loaded input libraries". <ifile> specifies the source file. If your image is split into multiple files, you have to specify them all! --inopts <iopts> : Specify input library specific options. <iopts> specifies a comma separated list of key=value options. --info : Print out infos about used compiler and loaded libraries. --morph <mtype> : Morphing function to apply to input image(s). If not specified, defaults to "combine". For a list of supported <mtype> types, run xmount --info and look under "loaded morphing libraries". --morphopts <mopts> : Specify morphing library specific options. <mopts> specifies a comma separated list of key=value options. --offset <off> : Move the output image data start <off> bytes into the input image(s). --out <otype> : Output image format. If not specified, defaults to "raw". <otype> can be "raw", "dmg", "vdi", "vhd", "vmdk", "vmdks". --owcache <file> : Same as --cache <file> but overwrites existing cache file. --sizelimit <size> : The data end of input image(s) is set to no more than <size> bytes after the data start. --version : Same as --info.
mntp: Mount point where virtual files should be located.
Hopefully none. If you find any, please e-mail to <bugs@pinguin.lu>.
To xmount an EWF image from your acquired disk as a raw DD image under /mnt, use the following command:
xmount --in ewf ./acquired_disk.E?? /mnt
To xmount the same ewf image as vdi file, you would use a command like this:
xmount --in ewf ./acquired_disk.E?? --out vdi /mnt
And to enable virtual write support on a raw DD input image xmounted as VDI file:
xmount --in raw ./acquired_disk.dd --out vdi --cache ./disk.cache /mnt
cloc(1)                           User Commands                          cloc(1)
cloc - Count, or compute differences of, lines of source code and comments.
cloc [options] <FILE|DIR> ...
Count, or compute differences of, physical lines of source code in the given files (may be archives such as compressed tarballs or zip files, or git commit hashes or branch names) and/or recursively below the given directories.  It is written entirely in Perl, using only modules from the standard distribution.
Input Options To count standard input, use the special filename - and either --stdin-name=FILE to tell cloc the name of the file being piped in, or --force-lang=LANG to apply the LANG counter to all input.
--extract-with=CMD This option is only needed if cloc is unable to figure out how to extract the contents of the input file(s) by itself. Use CMD to extract binary archive files (e.g.: .tar.gz, .zip, .Z). Use the literal '>FILE<' as a stand-in for the actual file(s) to be extracted. For example, to count lines of code in the input files gcc-4.2.tar.gz perl-5.8.8.tar.gz on Unix use:
--extract-with='gzip -dc >FILE< | tar xf -
or, if you have GNU tar:
--extract-with='tar zxf >FILE<'
and on Windows, use, for example:
--extract-with="\"c:\Program Files\WinZip\WinZip32.exe\" -e -o >FILE<
--list-file=FILE Take the list of file and/or directory names to process from FILE, which has one file/directory name per line.  Only exact matches are counted; relative path names will be resolved starting from the directory where cloc is invoked.  Set FILE to - to read file names from a STDIN pipe.  See also --exclude-list-file, --config.
--diff-list-file=FILE Take the pairs of file names to be diff'ed from FILE, whose format matches the output of --diff-alignment.  (Run with that option to see a sample.)  The language identifier at the end of each line is ignored.  This enables --diff mode and by-passes file pair alignment logic.  See also --config.
--vcs=VCS Invoke a system call to VCS to obtain a list of files to work on.  If VCS is 'git', then will invoke 'git ls-files' to get a file list and 'git submodule status' to get a list of submodules whose contents will be ignored.  See also --git which accepts git commit hashes and branch names.  If VCS is 'svn' then will invoke 'svn list -R'.  The primary benefit is that cloc will then skip files explicitly excluded by the versioning tool in question, ie, those in .gitignore or have the svn:ignore property.  Alternatively VCS may be any system command that generates a list of files.  Note:  cloc must be in a directory which can read the files as they are returned by VCS.  cloc will not download files from remote repositories.  'svn list -R' may refer to a remote repository to obtain file names (and therefore may require authentication to the remote repository), but the files themselves must be local.  Setting VCS to 'auto' selects between 'git' and 'svn' (or neither) depending on the presence of a .git or .svn subdirectory below the directory where cloc is invoked.
--unicode Check binary files to see if they contain Unicode expanded ASCII text.  This causes performance to drop noticeably.
Processing Options --autoconf Count .in files (as processed by GNU autoconf) of recognized languages.  See also --no-autogen.
--by-file Report results for every source file encountered.
--by-file-by-lang Report results for every source file encountered in addition to reporting by language.
--config FILE Read command line switches from FILE instead of the default location of ~/.config/cloc/options.txt.  The file should contain one switch, along with arguments (if any), per line.  Blank lines and lines beginning with '#' are skipped.  Options given on the command line take priority over entries read from the file.  If a directory is also given with any of these switches: --list-file, --exclude-list-file, --read-lang-def, --force-lang-def, --diff-list-file and a config file exists in that directory, it will take priority over ~/.config/cloc/options.txt.
--count-and-diff SET1 SET2 First perform direct code counts of source file(s) of SET1 and SET2 separately, then perform a diff of these.  Inputs may be pairs of files, directories, or archives.  If --out or --report-file is given, three output files will be created, one for each of the two counts and one for the diff.  See also --diff, --diff-alignment, --diff-timeout, --ignore-case, --ignore-whitespace.
--diff SET1 SET2 Compute differences in code and comments between source file(s) of SET1 and SET2.  The inputs may be pairs of files, directories, or archives.  Use --diff-alignment to generate a list showing which file pairs where compared.  See also --count-and-diff, --diff-alignment, --diff-timeout, --ignore-case, --ignore-whitespace.
--diff-timeout N Ignore files which take more than N seconds to process.  Default is 10 seconds.  Setting N to 0 allows unlimited time.  (Large files with many repeated lines can cause Algorithm::Diff::sdiff() to take hours.)
--docstring-as-code cloc considers docstrings to be comments, but this is not always correct as docstrings represent regular strings when they appear on the right hand side of an assignment or as function arguments.  This switch forces docstrings to be counted as code.
--follow-links [Unix only] Follow symbolic links to directories (sym links to files are always followed).
--force-lang=LANG[,EXT] Process all files that have a EXT extension with the counter for language LANG. For example, to count all .f files with the Fortran 90 counter (which expects files to end with .f90) instead of the default Fortran 77 counter, use:
--force-lang="Fortran 90",f
If EXT is omitted, every file will be counted with the LANG counter. This option can be specified multiple times (but that is only useful when EXT is given each time). See also --script-lang, --lang-no-ext.
--force-lang-def=FILE Load language processing filters from FILE, then use these filters instead of the built-in filters.  Note:  languages which map to the same file extension (for example: MATLAB/Objective-C/MUMPS; Pascal/PHP; Lisp/OpenCL; Lisp/Julia; Perl/Prolog) will be ignored as these require additional processing that is not expressed in language definition files.  Use --read-lang-def to define new language filters without replacing built-in filters (see also --write-lang-def, --write-lang-def-incl-dup).
--git Forces the inputs to be interpreted as git targets (commit hashes, branch names, et cetera) if these are not first identified as file or directory names.  This option overrides the --vcs=git logic if this is given; in other words, --git gets its list of files to work on directly from git using the hash or branch name rather than from 'git ls-files'.  This option can be used with --diff to perform line count diffs between git commits, or between a git commit and a file, directory, or archive.  Use -v/--verbose to see the git system commands cloc issues.
--git-diff-rel Same as --git --diff, or just --diff if the inputs are recognized as git targets.  Only files which have changed in either commit are compared.
--git-diff-all Git diff strategy #2:  compare all files in the repository between the two commits.
--ignore-whitespace Ignore horizontal white space when comparing files with --diff.  See also --ignore-case.
--ignore-case Ignore changes in case within file contents; consider upper- and lowercase letters equivalent when comparing files with --diff.  See also --ignore-whitespace.
--ignore-case-ext Ignore case of file name extensions.  This will cause problems counting some languages (specifically, .c and .C are associated with C and C++; this switch would count .C files as C rather than C++ on *nix operating systems).  File name case insensitivity is always true on Windows.
--lang-no-ext=LANG Count files without extensions using the LANG counter.  This option overrides internal logic for files without extensions (where such files are checked against known scripting languages by examining the first line for "#!").  See also --force-lang, --script-lang.
--max-file-size=MB Skip files larger than "MB" megabytes when traversing directories. By default, "MB"=100.  cloc's memory requirement is roughly twenty times larger than the largest file so running with files larger than 100 MB on a computer with less than 2 GB of memory will cause problems.  Note:  this check does not apply to files explicitly passed as command line arguments.
--no-autogen[=list] Ignore files generated by code-production systems such as GNU autoconf.  To see a list of these files (then exit), run with --no-autogen list See also --autoconf.
==item --original-dir
Only effective in combination with --strip-comments.  Write the stripped files to the same directory as the original files.
--read-binary-files Process binary files in addition to text files. This is usually a bad idea and should only be attempted with text files that have embedded binary data.
--read-lang-def=FILE Load new language processing filters from FILE and merge them with those already known to cloc.  If FILE defines a language cloc already knows about, cloc's definition will take precedence.  Use --force-lang-def to over-ride cloc's definitions.  (see also --write-lang-def).
--script-lang=LANG,S Process all files that invoke "S" as a "#!" scripting language with the counter for language LANG. For example, files that begin with "#!/usr/local/bin/perl5.8.8" will be counted with the Perl counter by using
--script-lang=Perl,perl5.8.8
The language name is case insensitive but the name of the script language executable, "S", must have the right case. This option can be specified multiple times. See also --force-lang.
--sdir=DIR Use DIR as the scratch directory instead of letting File::Temp chose the location. Files written to this location are not removed at the end of the run (as they are with File::Temp).
--skip-leading=N[,ext] Skip the first <N> lines of each file.  If a comma separated list of extensions is also given, only skip lines from those file types.  Example:
--skip-leading=10,cpp,h
will skip the first ten lines of *.cpp and *.h files.  This is useful for ignoring boilerplate text.
--skip-uniqueness Skip the file uniqueness check. This will give a performance boost at the expense of counting files with identical contents multiple times (if such duplicates exist).
--stat Some file systems (AFS, CD-ROM, FAT, HPFS, SMB) do not have directory 'nlink' counts that match the number of its subdirectories. Consequently cloc may undercount or completely skip the contents of such file systems.  This switch forces File::Find to stat directories to obtain the correct count.  File search spead will decrease.  See also --follow-links.
--stdin-name=FILE Count lines streamed via STDIN as if they came from a file named FILE.
--strip-comments=EXT For each file processed, write to the current directory a version of the file which has blank and commented lines removed (in-line comments persist). The name of each stripped file is the original file name with ".EXT" appended to it. It is written to the current directory unless --original-dir is on.
--strip-str-comments Replace comment markers embedded in strings with 'xx'.  This attempts to work around a limitation in Regexp::Common::Comment where comment markers embedded in strings are seen as actual comment markers and not strings, often resulting in a 'Complex regular subexpression recursion limit' warning and incorrect counts.  There are two disadvantages to using this switch:  1/code count performance drops, and 2/code generated with --strip-comments will contain different strings where ever embedded comments are found.
--sum-reports Input arguments are report files previously created with the --report-file option. Makes a cumulative set of results containing the sum of data from the individual report files.
--timeout=N
Ignore files which take more than <N> seconds to process at any of the language's filter stages.  The default maximum number of seconds spent on a filter stage is the number of lines in the file divided by one thousand.  Setting N to 0 allows unlimited time.  See also --diff-timeout.
--processes=NUM [Available only on systems with a recent version of the Parallel::ForkManager module.  Not available on Windows.] Sets the maximum number of cores that cloc uses.  The default value of 0 disables multiprocessing.
--unix Over-ride the operating system detection logic and run in UNIX mode. See also --windows, --show-os.
--use-sloccount If SLOCCount is installed, use its compiled executables c_count, java_count, pascal_count, php_count, and xml_count instead of cloc's counters.  SLOCCount's compiled counters are substantially faster than cloc's and may give a performance improvement when counting projects with large files.  However, these cloc-specific features will not be available: --diff, --count-and-diff, --strip-comments, --unicode.
--windows Over-ride the operating system detection logic and run in Microsoft Windows mode.  See also --unix, --show-os.
Filter Options --exclude-content=REGEX Exclude files containing text that matches the given regular expression.
--exclude-dir=DIR1[,DIR2 ...] Exclude the given comma separated directories from being scanned. For example:
--exclude-dir=.cache,test
will skip all files that match "/.cache/" or "/test/" as part of their path. Directories named ".bzr", ".cvs", ".hg", ".git", and ".svn" are always excluded.  This option only works with individual directory names so including file path separators is not allowed. Use --fullpath and --not-match-d=REGEX to supply a regex matching multiple subdirectories.
--exclude-ext=EXT1[,EXT2 ...] Do not count files having the given file name extensions.
--exclude-lang=L1[,L2[...]] Exclude the given comma separated languages from being counted.
--exclude-list-file=FILE Ignore files and/or directories whose names appear in FILE.  FILE should have one file name per line.  Only exact matches are ignored; relative path names will be resolved starting from the directory where cloc is invoked.  See also --list-file, --config.
--fullpath Modifies the behavior of --match-f or --not-match-f to include the file's path in the regex, not just the file's basename.  (This does not expand each file to include its absolute path, instead it uses as much of the path as is passed in to cloc.)
--include-ext=<ext1[,ext2[...]]> Count only languages having the given comma separated file extensions.  Use --show-ext to see the recognized extensions.
--include-lang=L1[,L2 ...] Count only the given comma separated languages L1, L2, L3, et cetera.
--match-d=REGEX Only count files in directories matching the Perl regex.  For example
--match-d='/(src|include)/'
only counts files in directory paths containing "/src/" or "/include/".
--not-match-d=REGEX Count all files except in directories matching the Perl regex.  Only the trailing directory name is compared, for example, when counting in "/usr/local/lib", only "lib" is compared to the regex.  Add --fullpath to compare parent directories to the regex.  Do not include file path separators at the beginning or end of the regex.
--match-f=REGEX Only count files whose basenames match the Perl regex. For example this only counts files at start with Widget or widget:
--match-f='^[Ww]idget'
Add --fullpath to include parent directories in the regex instead of just the basename.
--not-match-f=REGEX Count all files except those whose basenames match the Perl regex. Add --fullpath to include parent directories in the regex instead of just the basename.
--skip-archive=REGEX Ignore files that end with the given Perl regular expression.  For example, if given
--skip-archive='(zip|tar(\.(gz|Z|bz2|xz|7z))?)'
the code will skip files that end with .zip, .tar, .tar.gz, .tar.Z, .tar.bz2, .tar.xz, and .tar.7z.
--skip-win-hidden On Windows, ignore hidden files.
Debug Options --categorized=FILE Save names of categorized files to FILE.
--counted=FILE Save names of processed source files to FILE.
--diff-alignment=FILE Write to FILE a list of files and file pairs showing which files were added, removed, and/or compared during a run with --diff.  This switch forces the --diff mode on.
--explain=LANG Print the filters used to remove comments for language LANG and exit. In some cases the filters refer to Perl subroutines rather than regular expressions.  An examination of the source code may be needed for further explanation.
--help Print cloc's internal usage information and exit.
--found=FILE Save names of every file found to FILE.
--ignored=FILE Save names of ignored files and the reason they were ignored to FILE.
--print-filter-stages Print to STDOUT processed source code before and after each filter is applied.
--show-ext[=EXT] Print information about all known (or just the given) file extensions and exit.
--show-lang[=LANG] Print information about all known (or just the given) languages and exit.
--show-os Print the value of the operating system mode and exit.  See also --unix, --windows.
-v[=N] Turn on verbose with optional numeric value.
--verbose[=N] Long form of -v.
--version Print the version of this program and exit.
--write-lang-def=FILE Writes to FILE the language processing filters then exits. Useful as a first step to creating custom language definitions.  Note: languages which map to the same file extension will be excluded.  See also --force-lang-def, --read-lang-def.
--write-lang-def-incl-dup=FILE Same as --write-lang-def, but includes duplicated extensions.  This generates a problematic language definition file because cloc will refuse to use it until duplicates are removed.
Output Options --3 Print third-generation language output.  (This option can cause report summation to fail if some reports were produced with this option while others were produced without it.)
--by-percent X Instead of comment and blank line counts, show these values as percentages based on the value of X in the denominator, where X is one of c   meaning lines of code cm  meaning lines of code + comments cb  meaning lines of code + blanks cmb meaning lines of code + comments + blanks
For example, if using method 'c' and your code has twice as many lines of comments as lines of code, the value in the comment column will be 200%.  The code column remains a line count.
--csv Write the results as comma separated values.
--csv-delimiter=C Use the character C as the delimiter for comma separated files instead of ,.  This switch forces --csv to be on.
--file-encoding=E Write output files using the E encoding instead of the default ASCII (E = 'UTF-7').  Examples: 'UTF-16', 'euc-kr', 'iso-8859-16'.  Known encodings can be printed with perl -MEncode -e 'print join("\n", Encode->encodings(":all")), "\n"'
--hide-rate Do not show line and file processing rates in the output header. This makes output deterministic.
--json Write the results in JavaScript Object Notation (JSON).
--md Write the results as Markdown-formatted text.
--out=FILE Synonym for --report-file=FILE.
--progress-rate=N Show progress update after every N files are processed (default N=100). Set N to 0 to suppress progress output; useful when redirecting output to STDOUT.
--quiet Suppress all information messages except for the final report.
--report-file=FILE Write the results to FILE instead of standard output.
--summary-cutoff=X:N Aggregate to 'Other' results having X lines below N where X is one of c   meaning lines of code f   meaning files m   meaning lines of comments cm  meaning lines of code + comments Appending a percent sign to N changes the calculation from straight count to percentage.  Ignored with --diff or --by-file.
--sql=FILE Write results as SQL CREATE and INSERT statements which can be read by a database program such as SQLite. If FILE is -, output is sent to STDOUT.
--sql-append Append SQL insert statements to the file specified by --sql and do not generate table creation option.
--sql-project=NAME Use name as the project identifier for the current run. Only valid with the --sql option.