uutils Coreutils Documentation

uutils is an attempt at writing universal (as in cross-platform) CLI utilities in Rust. It is available for Linux, Windows, Mac and other platforms.

The API reference for uucore, the library of functions shared between various utils, is hosted at at docs.rs.

uutils is licensed under the MIT License.

Note: This manual is automatically generated from the source code and is a work in progress.

Installation

Requirements

  • Rust (cargo, rustc)
  • GNU Make (required to build documentation)
  • Sphinx (for documentation)
  • gzip (for installing documentation)

Rust Version

uutils follows Rust's release channels and is tested against stable, beta and nightly. The current oldest supported version of the Rust compiler is 1.54.

On both Windows and Redox, only the nightly version is tested currently.

Build Instructions

There are currently two methods to build the uutils binaries: either Cargo or GNU Make.

Building the full package, including all documentation, requires both Cargo and Gnu Make on a Unix platform.

For either method, we first need to fetch the repository:

$ git clone https://github.com/uutils/coreutils
$ cd coreutils

Cargo

Building uutils using Cargo is easy because the process is the same as for every other Rust program:

$ cargo build --release

This command builds the most portable common core set of uutils into a multicall (BusyBox-type) binary, named 'coreutils', on most Rust-supported platforms.

Additional platform-specific uutils are often available. Building these expanded sets of uutils for a platform (on that platform) is as simple as specifying it as a feature:

$ cargo build --release --features macos
# or ...
$ cargo build --release --features windows
# or ...
$ cargo build --release --features unix

If you don't want to build every utility available on your platform into the final binary, you can also specify which ones you want to build manually. For example:

$ cargo build --features "base32 cat echo rm" --no-default-features

If you don't want to build the multicall binary and would prefer to build the utilities as individual binaries, that is also possible. Each utility is contained in its own package within the main repository, named "uu_UTILNAME". To build individual utilities, use cargo to build just the specific packages (using the --package [aka -p] option). For example:

$ cargo build -p uu_base32 -p uu_cat -p uu_echo -p uu_rm

GNU Make

Building using make is a simple process as well.

To simply build all available utilities:

$ make

To build all but a few of the available utilities:

$ make SKIP_UTILS='UTILITY_1 UTILITY_2'

To build only a few of the available utilities:

$ make UTILS='UTILITY_1 UTILITY_2'

Installation Instructions

Cargo

Likewise, installing can simply be done using:

$ cargo install --path .

This command will install uutils into Cargo's bin folder (e.g. $HOME/.cargo/bin).

This does not install files necessary for shell completion. For shell completion to work, use GNU Make or see Manually install shell completions.

GNU Make

To install all available utilities:

$ make install

To install using sudo switch -E must be used:

$ sudo -E make install

To install all but a few of the available utilities:

$ make SKIP_UTILS='UTILITY_1 UTILITY_2' install

To install only a few of the available utilities:

$ make UTILS='UTILITY_1 UTILITY_2' install

To install every program with a prefix (e.g. uu-echo uu-cat):

$ make PROG_PREFIX=PREFIX_GOES_HERE install

To install the multicall binary:

$ make MULTICALL=y install

Set install parent directory (default value is /usr/local):

# DESTDIR is also supported
$ make PREFIX=/my/path install

Installing with make installs shell completions for all installed utilities for bash, fish and zsh. Completions for elvish and powershell can also be generated; See Manually install shell completions.

NixOS

The standard package set of NixOS provides this package out of the box since 18.03:

$ nix-env -iA nixos.uutils-coreutils

Manually install shell completions

The coreutils binary can generate completions for the bash, elvish, fish, powershell and zsh shells. It prints the result to stdout.

The syntax is:

cargo run completion <utility> <shell>

So, to install completions for ls on bash to /usr/local/share/bash-completion/completions/ls, run:

cargo run completion ls bash > /usr/local/share/bash-completion/completions/ls

Un-installation Instructions

Un-installation differs depending on how you have installed uutils. If you used Cargo to install, use Cargo to uninstall. If you used GNU Make to install, use Make to uninstall.

Cargo

To uninstall uutils:

$ cargo uninstall uutils

GNU Make

To uninstall all utilities:

$ make uninstall

To uninstall every program with a set prefix:

$ make PROG_PREFIX=PREFIX_GOES_HERE uninstall

To uninstall the multicall binary:

$ make MULTICALL=y uninstall

To uninstall from a custom parent directory:

# DESTDIR is also supported
$ make PREFIX=/my/path uninstall

Contributing to coreutils

Contributions are very welcome, and should target Rust's master branch until the standard libraries are stabilized. You may claim an item on the to-do list by following these steps:

  1. Open an issue named "Implement [the utility of your choice]", e.g. "Implement ls".
  2. State that you are working on this utility.
  3. Develop the utility.
  4. Add integration tests.
  5. Add the reference to your utility into Cargo.toml and Makefile.
  6. Remove utility from the to-do list in the README.
  7. Submit a pull request and close the issue.

The steps above imply that, before starting to work on a utility, you should search the issues to make sure no one else is working on it.

Best practices

  1. Follow what GNU is doing in terms of options and behavior. It is recommended to look at the GNU Coreutils manual (on the web, or locally using info <utility>). It is more in depth than the man pages and provides a good description of available features and their implementation details.
  2. If possible, look at the GNU test suite execution in the CI and make the test work if failing.
  3. Use clap for argument management.
  4. Make sure that the code coverage is covering all of the cases, including errors.
  5. The code must be clippy-warning-free and rustfmt-compliant.
  6. Don't hesitate to move common functions into uucore if they can be reused by other binaries.
  7. Unsafe code should be documented with Safety comments.
  8. uutils is original code. It cannot contain code from existing GNU or Unix-like utilities, nor should it link to or reference GNU libraries.

Commit messages

To help the project maintainers review pull requests from contributors across numerous utilities, the team has settled on conventions for commit messages.

From http://git-scm.com/book/ch5-2.html:

Short (50 chars or less) summary of changes

More detailed explanatory text, if necessary.  Wrap it to about 72
characters or so.  In some contexts, the first line is treated as the
subject of an email and the rest of the text as the body.  The blank
line separating the summary from the body is critical (unless you omit
the body entirely); tools like rebase can get confused if you run the
two together.

Further paragraphs come after blank lines.

  - Bullet points are okay, too

  - Typically a hyphen or asterisk is used for the bullet, preceded by a
    single space, with blank lines in between, but conventions vary here

Furthermore, here are a few examples for a summary line:

  • commit for a single utility
nohup: cleanup and refactor
  • commit for a utility's tests
tests/rm: test new feature

Beyond changes to an individual utility or its tests, other summary lines for non-utility modules include:

README: add help
uucore: add new modules
uutils: add new utility
gitignore: add temporary files

Licensing

uutils is distributed under the terms of the MIT License; see the LICENSE file for details. This is a permissive license, which allows the software to be used with few restrictions.

Copyrights in the uutils project are retained by their contributors, and no copyright assignment is required to contribute.

If you wish to add or change dependencies as part of a contribution to the project, a tool like cargo-license can be used to show their license details. The following types of license are acceptable:

  • MIT License
  • Dual- or tri-license with an MIT License option ("Apache-2.0 or MIT" is a popular combination)
  • "MIT equivalent" license (2-clause BSD, 3-clause BSD, ISC)
  • License less restrictive than the MIT License (CC0 1.0 Universal)
  • Apache License version 2.0

Licenses we will not use:

  • An ambiguous license, or no license
  • Strongly reciprocal licenses (GNU GPL, GNU LGPL)

If you wish to add a reference but it doesn't meet these requirements, please raise an issue to describe the dependency.

Multi-call binary

uutils includes a multi-call binary from which the utils can be invoked. This reduces the binary size of the binary and can be useful for portability.

The first argument of the multi-call binary is the util to run, after which the regular arguments to the util can be passed.

coreutils [util] [util options]

The --help flag will print a list of available utils.

Example

coreutils ls -l

arch

version: 0.0.12
arch

Display machine architecture

Options

--help, -h

Print help information

--version, -V

Print version information

base32

version: 0.0.12
base32 [OPTIONS] [file]...

With no FILE, or when FILE is -, read standard input.

The data are encoded as described for the base32 alphabet in RFC 4648. When decoding, the input may contain newlines in addition to the bytes of the formal base32 alphabet. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream.

Options

--help, -h

Print help information

--version, -V

Print version information

--decode, -d

decode data

--ignore-garbage, -i

when decoding, ignore non-alphabetic characters

--wrap, -w

wrap encoded lines after COLS character (default 76, 0 to disable wrapping)

base64

version: 0.0.12
base64 [OPTIONS] [file]...

With no FILE, or when FILE is -, read standard input.

The data are encoded as described for the base32 alphabet in RFC 4648. When decoding, the input may contain newlines in addition to the bytes of the formal base32 alphabet. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream.

Options

--help, -h

Print help information

--version, -V

Print version information

--decode, -d

decode data

--ignore-garbage, -i

when decoding, ignore non-alphabetic characters

--wrap, -w

wrap encoded lines after COLS character (default 76, 0 to disable wrapping)

basename

version: 0.0.12
basename [OPTIONS]

Print NAME with any leading directory components removed If specified, also remove a trailing SUFFIX

Options

--help, -h

Print help information

--version, -V

Print version information

--multiple, -a

support multiple arguments and treat each as a NAME

--suffix=<SUFFIX>, -s <SUFFIX>

remove a trailing SUFFIX; implies -a

--zero, -z

end each output line with NUL, not newline

basenc

version: 0.0.12
basenc [OPTIONS] [file]...

With no FILE, or when FILE is -, read standard input.

When decoding, the input may contain newlines in addition to the bytes of the formal alphabet. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream.

Options

--help, -h

Print help information

--version, -V

Print version information

--decode, -d

decode data

--ignore-garbage, -i

when decoding, ignore non-alphabetic characters

--wrap, -w

wrap encoded lines after COLS character (default 76, 0 to disable wrapping)

--base64
--base64url
--base32
--base32hex
--base16
--base2lsbf
--base2msbf
--z85
--base2l
--base2m

cat

version: 0.0.12
[OPTION]... [FILE]...

Concatenate FILE(s), or standard input, to standard output With no FILE, or when FILE is -, read standard input.

Options

--help, -h

Print help information

--version, -V

Print version information

--show-all, -A

equivalent to -vET

--number-nonblank, -b

number nonempty output lines, overrides -n

-e

equivalent to -vE

--show-ends, -E

display $ at end of each line

--number, -n

number all output lines

--squeeze-blank, -s

suppress repeated empty output lines

--t, -t

equivalent to -vT

--show-tabs, -T

display TAB characters at ^I

--show-nonprinting, -v

use ^ and M- notation, except for LF (\n) and TAB (\t)

chcon

version: 0.0.12
chcon [OPTIONS] [FILE]...

Change the SELinux security context of each FILE to CONTEXT. With --reference, change the security context of each FILE to that of RFILE.

Options

--help

Print help information

--version, -V

Print version information

--dereference

Affect the referent of each symbolic link (this is the default), rather than the symbolic link itself.

--no-dereference, -h

Affect symbolic links instead of any referenced file.

--preserve-root

Fail to operate recursively on '/'.

--no-preserve-root

Do not treat '/' specially (the default).

--reference=<RFILE>

Use security context of RFILE, rather than specifying a CONTEXT value.

--user=<USER>, -u <USER>

Set user USER in the target security context.

--role=<ROLE>, -r <ROLE>

Set role ROLE in the target security context.

--type=<TYPE>, -t <TYPE>

Set type TYPE in the target security context.

--range=<RANGE>, -l <RANGE>

Set range RANGE in the target security context.

--recursive, -R

Operate on files and directories recursively.

-H

If a command line argument is a symbolic link to a directory, traverse it. Only valid when -R is specified.

-L

Traverse every symbolic link to a directory encountered. Only valid when -R is specified.

-P

Do not traverse any symbolic links (default). Only valid when -R is specified.

--verbose, -v

Output a diagnostic for every file processed.

chgrp

version: 0.0.12
chgrp [OPTIONS]

Change the group of each FILE to GROUP.

Options

--help

Print help information

--version, -V

Print version information

--changes, -c

like verbose but report only when a change is made

--silent, -f
--quiet

suppress most error messages

--verbose, -v

output a diagnostic for every file processed

--dereference
--no-dereference, -h

affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)

--preserve-root

fail to operate recursively on '/'

--no-preserve-root

do not treat '/' specially (the default)

--reference=<RFILE>

use RFILE's group rather than specifying GROUP values

--recursive, -R

operate on files and directories recursively

-H

if a command line argument is a symbolic link to a directory, traverse it

-P

do not traverse any symbolic links (default)

-L

traverse every symbolic link to a directory encountered

chmod

version: 0.0.12
chmod [OPTIONS] [ARGS]

Change the mode of each FILE to MODE. With --reference, change the mode of each FILE to that of RFILE.

Options

--help, -h

Print help information

--version, -V

Print version information

--changes, -c

like verbose but report only when a change is made

--quiet, --silent, -f

suppress most error messages

--verbose, -v

output a diagnostic for every file processed

--no-preserve-root

do not treat '/' specially (the default)

--preserve-root

fail to operate recursively on '/'

--recursive, -R

change files and directories recursively

--reference

use RFILE's mode instead of MODE values

chown

version: 0.0.12
chown [OPTIONS]

change file owner and group

Options

--help

Print help information

--version, -V

Print version information

--changes, -c

like verbose but report only when a change is made

--dereference

affect the referent of each symbolic link (this is the default), rather than the symbolic link itself

--no-dereference, -h

affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)

--from=<CURRENT_OWNER:CURRENT_GROUP>

change the owner and/or group of each file only if its current owner and/or group match those specified here. Either may be omitted, in which case a match is not required for the omitted attribute

--preserve-root

fail to operate recursively on '/'

--no-preserve-root

do not treat '/' specially (the default)

--quiet

suppress most error messages

--recursive, -R

operate on files and directories recursively

--reference=<RFILE>

use RFILE's owner and group rather than specifying OWNER:GROUP values

--silent, -f
-H

if a command line argument is a symbolic link to a directory, traverse it

-L

traverse every symbolic link to a directory encountered

-P

do not traverse any symbolic links (default)

--verbose, -v

output a diagnostic for every file processed

chroot

version: 0.0.12
[OPTION]... NEWROOT [COMMAND [ARG]...]

Run COMMAND with root directory set to NEWROOT.

Options

--help, -h

Print help information

--version, -V

Print version information

--user=<USER>, -u <USER>

User (ID or name) to switch before running the program

--group=<GROUP>, -g <GROUP>

Group (ID or name) to switch to

--groups=<GROUP1,GROUP2...>, -G <GROUP1,GROUP2...>

Comma-separated list of groups to switch to

--userspec=<USER:GROUP>

Colon-separated user and group to switch to. Same as -u USER -g GROUP. Userspec has higher preference than -u and/or -g

cksum

version: 0.0.12
[OPTIONS] [FILE]...

Print CRC and size for each file

Options

--help, -h

Print help information

--version, -V

Print version information

comm

version: 0.0.12
comm [OPTIONS] <FILE1> <FILE2>

compare two sorted files line by line

Options

--help, -h

Print help information

--version, -V

Print version information

-1

suppress column 1 (lines unique to FILE1)

-2

suppress column 2 (lines unique to FILE2)

-3

suppress column 3 (lines that appear in both files)

--output-delimiter=<STR>

separate columns with STR

cp

version: 0.0.12
cp [OPTIONS] [--] [paths]...

Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

Options

--help, -h

Print help information

--version, -V

Print version information

--target-directory=<target-directory>, -t <target-directory>

copy all SOURCE arguments into target-directory

--no-target-directory, -T

Treat DEST as a regular file and not a directory

--interactive, -i

ask before overwriting files

--link, -l

hard-link files instead of copying

--no-clobber, -n

don't overwrite a file that already exists

--recursive, -r

copy directories recursively

-R

same as -r

--strip-trailing-slashes

remove any trailing slashes from each SOURCE argument

--verbose, -v

explicitly state what is being done

--symbolic-link, -s

make symbolic links instead of copying

--force, -f

if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used). Currently not implemented for Windows.

--remove-destination

remove each existing destination file before attempting to open it (contrast with --force). On Windows, current only works for writeable files.

--backup=<CONTROL>

make a backup of each existing destination file

-b

like --backup but does not accept an argument

--suffix=<SUFFIX>, -S <SUFFIX>

override the usual backup suffix

--update, -u

copy only when the SOURCE file is newer than the destination file or when the destination file is missing

--reflink=<WHEN>

control clone/CoW copies. See below

--attributes-only

Don't copy the file data, just the attributes

--preserve=<ATTR_LIST>

Preserve the specified attributes (default: mode, ownership (unix only), timestamps), if possible additional attributes: context, links, xattr, all

--preserve-default-attributes, -p

same as --preserve=mode,ownership(unix only),timestamps

--no-preserve=<ATTR_LIST>

don't preserve the specified attributes

--parents

use full source file name under DIRECTORY

--no-dereference, -P

never follow symbolic links in SOURCE

--dereference, -L

always follow symbolic links in SOURCE

--archive, -a

Same as -dR --preserve=all

-d

same as --no-dereference --preserve=links

--one-file-system, -x

stay on this file system

--copy-contents

NotImplemented: copy contents of special files when recursive

--sparse=<WHEN>

NotImplemented: control creation of sparse files. See below

--context=<CTX>

NotImplemented: set SELinux security context of destination file to default type

-H

NotImplemented: follow command-line symbolic links in SOURCE

csplit

version: 0.0.12
csplit [OPTIONS] <file> <pattern>...

split a file into sections determined by context lines

Options

--help, -h

Print help information

--version, -V

Print version information

--suffix-format=<FORMAT>, -b <FORMAT>

use sprintf FORMAT instead of %02d

--prefix=<PREFIX>, -f <PREFIX>

use PREFIX instead of 'xx'

--keep-files, -k

do not remove output files on errors

--suppress-matched

suppress the lines matching PATTERN

--digits=<DIGITS>, -n <DIGITS>

use specified number of digits instead of 2

--quiet, --silent, -s

do not print counts of output file sizes

--elide-empty-files, -z

remove empty output files

cut

version: 0.0.12
[-d] [-s] [-z] [--output-delimiter] ((-f|-b|-c) {{sequence}}) {{sourcefile}}+

Prints specified byte or field columns from each line of stdin or the input files

Options

--help, -h

Print help information

--version, -V

Print version information

--bytes=<LIST>, -b <LIST>

filter byte columns from the input source

--characters=<LIST>, -c <LIST>

alias for character mode

--delimiter=<DELIM>, -d <DELIM>

specify the delimiter character that separates fields in the input source. Defaults to Tab.

--fields=<LIST>, -f <LIST>

filter field columns from the input source

--complement

invert the filter - instead of displaying only the filtered columns, display all but those columns

--only-delimited, -s

in field mode, only print lines which contain the delimiter

--zero-terminated, -z

instead of filtering columns based on line, filter columns based on \0 (NULL character)

--output-delimiter=<NEW_DELIM>

in field mode, replace the delimiter in output lines with this option's argument

date

version: 0.0.12
date [OPTIONS] [format]

print or set the system date and time

Options

--help, -h

Print help information

--version, -V

Print version information

--date, -d

display time described by STRING, not 'now'

--file, -f

like --date; once for each line of DATEFILE

--iso-8601, -I

output date/time in ISO 8601 format. FMT='date' for date only (the default), 'hours', 'minutes', 'seconds', or 'ns' for date and time to the indicated precision. Example: 2006-08-14T02:34:56-06:00

--rfc-email, -R

output date and time in RFC 5322 format. Example: Mon, 14 Aug 2006 02:34:56 -0600

--rfc-3339

output date/time in RFC 3339 format. FMT='date', 'seconds', or 'ns' for date and time to the indicated precision. Example: 2006-08-14 02:34:56-06:00

--debug

annotate the parsed date, and warn about questionable usage to stderr

--reference, -r

display the last modification time of FILE

--set, -s

set time described by STRING

--universal, -u

print or set Coordinated Universal Time (UTC)

dd

version: 0.0.12
dd [OPTIONS]

copy, and optionally convert, a file system resource

Options

--help, -h

Print help information

--version, -V

Print version information

--if=<FILE>

(alternatively if=FILE) specifies the file used for input. When not specified, stdin is used instead

--of=<FILE>

(alternatively of=FILE) specifies the file used for output. When not specified, stdout is used instead

--ibs=<N>

(alternatively ibs=N) specifies the size of buffer used for reads (default: 512). Multiplier strings permitted.

--obs=<N>

(alternatively obs=N) specifies the size of buffer used for writes (default: 512). Multiplier strings permitted.

--bs=<N>

(alternatively bs=N) specifies ibs=N and obs=N (default: 512). If ibs or obs are also specified, bs=N takes precedence. Multiplier strings permitted.

--cbs=<N>

(alternatively cbs=BYTES) specifies the 'conversion block size' in bytes. Applies to the conv=block, and conv=unblock operations. Multiplier strings permitted.

--skip=<N>

(alternatively skip=N) causes N ibs-sized records of input to be skipped before beginning copy/convert operations. See iflag=count_bytes if skipping N bytes is preferred. Multiplier strings permitted.

--seek=<N>

(alternatively seek=N) seeks N obs-sized records into output before beginning copy/convert operations. See oflag=seek_bytes if seeking N bytes is preferred. Multiplier strings permitted.

--count=<N>

(alternatively count=N) stop reading input after N ibs-sized read operations rather than proceeding until EOF. See iflag=count_bytes if stopping after N bytes is preferred. Multiplier strings permitted.

--status=<LEVEL>

(alternatively status=LEVEL) controls whether volume and performance stats are written to stderr.

When unspecified, dd will print stats upon completion. An example is below. 6+0 records in 16+0 records out 8192 bytes (8.2 kB, 8.0 KiB) copied, 0.00057009 s, 14.4 MB/s The first two lines are the 'volume' stats and the final line is the 'performance' stats. The volume stats indicate the number of complete and partial ibs-sized reads, or obs-sized writes that took place during the copy. The format of the volume stats is +. If records have been truncated (see conv=block), the volume stats will contain the number of truncated records.

Permissible LEVEL values are: progress: Print periodic performance stats as the copy proceeds. noxfer: Print final volume stats, but not performance stats. none: Do not print any stats.

Printing performance stats is also triggered by the INFO signal (where supported), or the USR1 signal. Setting the POSIXLY_CORRECT environment variable to any value (including an empty value) will cause the USR1 signal to be ignored.

--conv=<CONV>

(alternatively conv=CONV[,CONV]) specifies a comma-separated list of conversion options or (for legacy reasons) file flags. Conversion options and file flags may be intermixed.

Conversion options: One of {ascii, ebcdic, ibm} will perform an encoding conversion. 'ascii' converts from EBCDIC to ASCII. This is the inverse of the 'ebcdic' option. 'ebcdic' converts from ASCII to EBCDIC. This is the inverse of the 'ascii' option. 'ibm' converts from ASCII to EBCDIC, applying the conventions for '[', ']' and '~' specified in POSIX.

 One of {ucase, lcase} will perform a case conversion. Works in conjunction with option {ascii, ebcdic, ibm} to infer input encoding. If no other conversion option is specified, input is assumed to be ascii.
	 'ucase' converts from lower-case to upper-case
	 'lcase' converts from upper-case to lower-case.

 One of {block, unblock}. Convert between lines terminated by newline characters, and fixed-width lines padded by spaces (without any newlines). Both the 'block' and 'unblock' options require cbs=BYTES be specified.
	 'block' for each newline less than the size indicated by cbs=BYTES, remove the newline and pad with spaces up to cbs. Lines longer than cbs are truncated.
	 'unblock' for each block of input of the size indicated by cbs=BYTES, remove right-trailing spaces and replace with a newline character.

 'sparse' attempts to seek the output when an obs-sized block consists of only zeros.
 'swab' swaps each adjacent pair of bytes. If an odd number of bytes is present, the final byte is omitted.
 'sync' pad each ibs-sided block with zeros. If 'block' or 'unblock' is specified, pad with spaces instead.

Conversion Flags: One of {excl, nocreat} 'excl' the output file must be created. Fail if the output file is already present. 'nocreat' the output file will not be created. Fail if the output file in not already present. 'notrunc' the output file will not be truncated. If this option is not present, output will be truncated when opened. 'noerror' all read errors will be ignored. If this option is not present, dd will only ignore Error::Interrupted. 'fdatasync' data will be written before finishing. 'fsync' data and metadata will be written before finishing.

--iflag=<FLAG>

(alternatively iflag=FLAG[,FLAG]) a comma separated list of input flags which specify how the input source is treated. FLAG may be any of the input-flags or general-flags specified below.

Input-Flags 'count_bytes' a value to count=N will be interpreted as bytes. 'skip_bytes' a value to skip=N will be interpreted as bytes. 'fullblock' wait for ibs bytes from each read. zero-length reads are still considered EOF.

General-Flags 'direct' use direct I/O for data. 'directory' fail unless the given input (if used as an iflag) or output (if used as an oflag) is a directory. 'dsync' use synchronized I/O for data. 'sync' use synchronized I/O for data and metadata. 'nonblock' use non-blocking I/O. 'noatime' do not update access time. 'nocache' request that OS drop cache. 'noctty' do not assign a controlling tty. 'nofollow' do not follow system links.

--oflag=<FLAG>

(alternatively oflag=FLAG[,FLAG]) a comma separated list of output flags which specify how the output source is treated. FLAG may be any of the output-flags or general-flags specified below.

Output-Flags 'append' open file in append mode. Consider setting conv=notrunc as well. 'seek_bytes' a value to seek=N will be interpreted as bytes.

General-Flags 'direct' use direct I/O for data. 'directory' fail unless the given input (if used as an iflag) or output (if used as an oflag) is a directory. 'dsync' use synchronized I/O for data. 'sync' use synchronized I/O for data and metadata. 'nonblock' use non-blocking I/O. 'noatime' do not update access time. 'nocache' request that OS drop cache. 'noctty' do not assign a controlling tty. 'nofollow' do not follow system links.

df

version: 0.0.12
df [OPTIONS] [paths]...

Show information about the file system on which each FILE resides, or all file systems by default.

Options

--help

Print help information

--version, -V

Print version information

--all, -a

include dummy file systems

--block-size, -B

scale sizes by SIZE before printing them; e.g.'-BM' prints sizes in units of 1,048,576 bytes

--direct

show statistics for a file instead of mount point

--total

produce a grand total

--human-readable, -h

print sizes in human readable format (e.g., 1K 234M 2G)

--si, -H

likewise, but use powers of 1000 not 1024

--inodes, -i

list inode information instead of block usage

-k

like --block-size=1K

--local, -l

limit listing to local file systems

--no-sync

do not invoke sync before getting usage info (default)

--output

use the output format defined by FIELD_LIST,or print all fields if FIELD_LIST is omitted.

--portability, -P

use the POSIX output format

--sync

invoke sync before getting usage info

--type, -t

limit listing to file systems of type TYPE

--print-type, -T

print file system type

--exclude-type, -x

limit listing to file systems not of type TYPE

dircolors

version: 0.0.12
dircolors [OPTIONS]

Output commands to set the LS_COLORS environment variable.

Options

--help, -h

Print help information

--version, -V

Print version information

--sh, --bourne-shell, -b

output Bourne shell code to set LS_COLORS

--csh, --c-shell, -c

output C shell code to set LS_COLORS

--print-database, -p

print the byte counts

dirname

version: 0.0.12
dirname [OPTIONS]

strip last component from file name

Options

--help, -h

Print help information

--version, -V

Print version information

--zero, -z

separate output with NUL rather than newline

du

version: 0.0.12
du [OPTIONS] [--]

estimate file space usage

Options

--help

Print help information

--version, -V

Print version information

--all, -a

write counts for all files, not just directories

--apparent-size

print apparent sizes, rather than disk usage although the apparent size is usually smaller, it may be larger due to holes in ('sparse') files, internal fragmentation, indirect blocks, and the like

--block-size=<SIZE>, -B <SIZE>

scale sizes by SIZE before printing them. E.g., '-BM' prints sizes in units of 1,048,576 bytes. See SIZE format below.

--bytes, -b

equivalent to '--apparent-size --block-size=1'

--total, -c

produce a grand total

--max-depth=<N>, -d <N>

print the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize

--human-readable, -h

print sizes in human readable format (e.g., 1K 234M 2G)

--inodes

list inode usage information instead of block usage like --block-size=1K

-k

like --block-size=1K

--count-links, -l

count sizes many times if hard linked

--dereference, -L

dereference all symbolic links

-m

like --block-size=1M

--null, -0

end each output line with 0 byte rather than newline

--separate-dirs, -S

do not include size of subdirectories

--summarize, -s

display only a total for each argument

--si

like -h, but use powers of 1000 not 1024

--one-file-system, -x

skip directories on different file systems

--threshold=<SIZE>, -t <SIZE>

exclude entries smaller than SIZE if positive, or entries greater than SIZE if negative

--time=<WORD>

show time of the last modification of any file in the directory, or any of its subdirectories. If WORD is given, show time as WORD instead of modification time: atime, access, use, ctime, status, birth or creation

--time-style=<STYLE>

show times using style STYLE: full-iso, long-iso, iso, +FORMAT FORMAT is interpreted like 'date'

echo

version: 0.0.12
[OPTIONS]... [STRING]...

display a line of text

Options

--help, -h

Print help information

--version, -V

Print version information

-n

do not output the trailing newline

-e

enable interpretation of backslash escapes

-E

disable interpretation of backslash escapes (default)

env

version: 0.0.12
env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]

env ~ (uutils) set each NAME to VALUE in the environment and run COMMAND

Options

--help, -h

Print help information

--version, -V

Print version information

--ignore-environment, -i

start with an empty environment

--chdir=<DIR>, -C <DIR>

change working directory to DIR

--null, -0

end each output line with a 0 byte rather than a newline (only valid when printing the environment)

--file=<PATH>, -f <PATH>

read and set variables from a ".env"-style configuration file (prior to any unset and/or set)

--unset=<NAME>, -u <NAME>

remove variable from the environment

expand

version: 0.0.12
expand [OPTIONS]

Convert tabs in each FILE to spaces, writing to standard output. With no FILE, or when FILE is -, read standard input.

Options

--help, -h

Print help information

--version, -V

Print version information

--initial, -i

do not convert tabs after non blanks

--tabs=<N, LIST>, -t <N, LIST>

have tabs N characters apart, not 8 or use comma separated list of explicit tab positions

--no-utf8, -U

interpret input file as 8-bit ASCII rather than UTF-8

expr

version:
expr

Options

--version
--help

factor

version: 0.0.12
factor [NUMBER]...

Print the prime factors of the given NUMBER(s). If none are specified, read from standard input.

Options

--help, -h

Print help information

--version, -V

Print version information

false

version:
false

Options

--help, -h

Print help information

fmt

version: 0.0.12
fmt [OPTIONS] [files]...

Reformat paragraphs from input files (or stdin) to stdout.

Options

--help, -h

Print help information

--version, -V

Print version information

--crown-margin, -c

First and second line of paragraph may have different indentations, in which case the first line's indentation is preserved, and each subsequent line's indentation matches the second line.

--tagged-paragraph, -t

Like -c, except that the first and second line of a paragraph must have different indentation or they are treated as separate paragraphs.

--preserve-headers, -m

Attempt to detect and preserve mail headers in the input. Be careful when combining this flag with -p.

--split-only, -s

Split lines only, do not reflow.

--uniform-spacing, -u

Insert exactly one space between words, and two between sentences. Sentence breaks in the input are detected as [?!.] followed by two spaces or a newline; other punctuation is not interpreted as a sentence break.

--prefix=<PREFIX>, -p <PREFIX>

Reformat only lines beginning with PREFIX, reattaching PREFIX to reformatted lines. Unless -x is specified, leading whitespace will be ignored when matching PREFIX.

--skip-prefix=<PSKIP>, -P <PSKIP>

Do not reformat lines beginning with PSKIP. Unless -X is specified, leading whitespace will be ignored when matching PSKIP

--exact-prefix, -x

PREFIX must match at the beginning of the line with no preceding whitespace.

--exact-skip-prefix, -X

PSKIP must match at the beginning of the line with no preceding whitespace.

--width=<WIDTH>, -w <WIDTH>

Fill output lines up to a maximum of WIDTH columns, default 79.

--goal=<GOAL>, -g <GOAL>

Goal width, default ~0.94*WIDTH. Must be less than WIDTH.

--quick, -q

Break lines more quickly at the expense of a potentially more ragged appearance.

--tab-width=<TABWIDTH>, -T <TABWIDTH>

Treat tabs as TABWIDTH spaces for determining line length, default 8. Note that this is used only for calculating line lengths; tabs are preserved in the output.

fold

version: 0.0.12
[OPTION]... [FILE]...

Writes each file (or standard input if no files are given) to standard output whilst breaking long lines

Options

--help, -h

Print help information

--version, -V

Print version information

--bytes, -b

count using bytes rather than columns (meaning control characters such as newline are not treated specially)

--spaces, -s

break lines at word boundaries rather than a hard cut-off

--width=<WIDTH>, -w <WIDTH>

set WIDTH as the maximum line width rather than 80

groups

version: 0.0.12
groups [USERNAME]...

Print group memberships for each USERNAME or, if no USERNAME is specified, for the current process (which may differ if the groups data‐base has changed).

Options

--help, -h

Print help information

--version, -V

Print version information

hashsum

version: 0.0.12
hashsum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

--md5

work with MD5

--sha1

work with SHA1

--sha224

work with SHA224

--sha256

work with SHA256

--sha384

work with SHA384

--sha512

work with SHA512

--sha3

work with SHA3

--sha3-224

work with SHA3-224

--sha3-256

work with SHA3-256

--sha3-384

work with SHA3-384

--sha3-512

work with SHA3-512

--shake128

work with SHAKE128 using BITS for the output size

--shake256

work with SHAKE256 using BITS for the output size

--b2sum

work with BLAKE2

head

version: 0.0.12
head [FLAG]... [FILE]...

Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long flags are mandatory for short flags too.

Options

--help, -h

Print help information

--version, -V

Print version information

--bytes=<[-]NUM>, -c <[-]NUM>

print the first NUM bytes of each file; with the leading '-', print all but the last NUM bytes of each file

--lines=<[-]NUM>, -n <[-]NUM>

print the first NUM lines instead of the first 10; with the leading '-', print all but the last NUM lines of each file

--quiet, --silent, -q

never print headers giving file names

--verbose, -v

always print headers giving file names

--zero-terminated, -z

line delimiter is NUL, not newline

hostid

version: 0.0.12
[options]

Options

--help, -h

Print help information

--version, -V

Print version information

hostname

version: 0.0.12
hostname [OPTIONS] [host]

Display or set the system's host name.

Options

--help, -h

Print help information

--version, -V

Print version information

--domain, -d

Display the name of the DNS domain if possible

--ip-address, -i

Display the network address(es) of the host

--fqdn, -f

Display the FQDN (Fully Qualified Domain Name) (default)

--short, -s

Display the short hostname (the portion before the first dot) if possible

id

version: 0.0.12
id [OPTIONS] [USER]...

Print user and group information for each specified USER, or (when USER omitted) for the current user.

Options

--help, -h

Print help information

--version, -V

Print version information

-A

Display the process audit user ID and other process audit properties, which requires privilege (not available on Linux).

--user, -u

Display only the effective user ID as a number.

--group, -g

Display only the effective group ID as a number

--groups, -G

Display only the different group IDs as white-space separated numbers, in no particular order.

-p

Make the output human-readable. Each display is on a separate line.

--name, -n

Display the name of the user or group ID for the -G, -g and -u options instead of the number. If any of the ID numbers cannot be mapped into names, the number will be displayed as usual.

-P

Display the id as a password file entry.

--real, -r

Display the real ID for the -G, -g and -u options instead of the effective ID.

--zero, -z

delimit entries with NUL characters, not whitespace; not permitted in default format

--context, -Z

print only the security context of the process

install

version: 0.0.12
install [OPTIONS] [--] [files]...

Copy SOURCE to DEST or multiple SOURCE(s) to the existing DIRECTORY, while setting permission modes and owner/group

Options

--help, -h

Print help information

--version, -V

Print version information

--backup=<CONTROL>

make a backup of each existing destination file

-b

like --backup but does not accept an argument

-c

ignored

--compare, -C

compare each pair of source and destination files, and in some cases, do not modify the destination at all

--directory, -d

treat all arguments as directory names. create all components of the specified directories

-D

create all leading components of DEST except the last, then copy SOURCE to DEST

--group=<GROUP>, -g <GROUP>

set group ownership, instead of process's current group

--mode=<MODE>, -m <MODE>

set permission mode (as in chmod), instead of rwxr-xr-x

--owner=<OWNER>, -o <OWNER>

set ownership (super-user only)

--preserve-timestamps, -p

apply access/modification times of SOURCE files to corresponding destination files

--strip, -s

strip symbol tables (no action Windows)

--strip-program=<PROGRAM>

program used to strip binaries (no action Windows)

--suffix=<SUFFIX>, -S <SUFFIX>

override the usual backup suffix

--target-directory=<DIRECTORY>, -t <DIRECTORY>

move all SOURCE arguments into DIRECTORY

--no-target-directory, -T

(unimplemented) treat DEST as a normal file

--verbose, -v

explain what is being done

--preserve-context, -P

(unimplemented) preserve security context

--context=<CONTEXT>, -Z <CONTEXT>

(unimplemented) set security context of files and directories

join

version: 0.0.12
join [OPTIONS] <FILE1> <FILE2>

For each pair of input lines with identical join fields, write a line to standard output. The default join field is the first, delimited by blanks.

When FILE1 or FILE2 (not both) is -, read standard input.

Options

--help, -h

Print help information

--version, -V

Print version information

-a <FILENUM>

also print unpairable lines from file FILENUM, where FILENUM is 1 or 2, corresponding to FILE1 or FILE2

-v <FILENUM>

like -a FILENUM, but suppress joined output lines

-e <EMPTY>

replace missing input fields with EMPTY

--ignore-case, -i

ignore differences in case when comparing fields

-j <FIELD>

equivalent to '-1 FIELD -2 FIELD'

-o <FORMAT>

obey FORMAT while constructing output line

-t <CHAR>

use CHAR as input and output field separator

-1 <FIELD>

join on this FIELD of file 1

-2 <FIELD>

join on this FIELD of file 2

--check-order

check that the input is correctly sorted, even if all input lines are pairable

--nocheck-order

do not check that the input is correctly sorted

--header

treat the first line in each file as field headers, print them without trying to pair them

--zero-terminated, -z

line delimiter is NUL, not newline

kill

version: 0.0.12
kill [OPTIONS]

Send signal to processes or list information about signals.

Options

--help, -h

Print help information

--version, -V

Print version information

--list, -l

Lists signals

--table, -t

Lists table of signals

-L
--signal, -s

Sends given signal

link

version: 0.0.12
link <FILES>...

Call the link function to create a link named FILE2 to an existing FILE1.

Options

--help, -h

Print help information

--version, -V

Print version information

ln

version: 0.0.12
ln [OPTIONS] <files>...

change file owner and group

Options

--help, -h

Print help information

--version, -V

Print version information

--backup=<CONTROL>

make a backup of each existing destination file

-b

like --backup but does not accept an argument

--force, -f

remove existing destination files

--interactive, -i

prompt whether to remove existing destination files

--no-dereference, -n

treat LINK_NAME as a normal file if it is a symbolic link to a directory

--symbolic, -s

make symbolic links instead of hard links

--suffix=<SUFFIX>, -S <SUFFIX>

override the usual backup suffix

--target-directory=<DIRECTORY>, -t <DIRECTORY>

specify the DIRECTORY in which to create the links

--no-target-directory, -T

treat LINK_NAME as a normal file always

--relative, -r

create symbolic links relative to link location

--verbose, -v

print name of each linked file

logname

version: 0.0.12
logname

Print user's login name

Options

--help, -h

Print help information

--version, -V

Print version information

ls

version: 0.0.12
ls [OPTIONS] [--] [paths]...

By default, ls will list the files and contents of any directories on the command line, expect that it will ignore files and directories whose names start with '.'.

Options

--help

Print help information

--version, -V

Print version information

--format

Set the display format.

-C

Display the files in columns.

--long, -l

Display detailed information.

-x

List entries in rows instead of in columns.

-m

List entries separated by commas.

-1

List one file per line.

-o

Long format without group information. Identical to --format=long with --no-group.

-g

Long format without owner information.

--numeric-uid-gid, -n

-l with numeric UIDs and GIDs.

--quoting-style

Set quoting style.

--literal, -N

Use literal quoting style. Equivalent to --quoting-style=literal

--escape, -b

Use escape quoting style. Equivalent to --quoting-style=escape

--quote-name, -Q

Use C quoting style. Equivalent to --quoting-style=c

--hide-control-chars, -q

Replace control characters with '?' if they are not escaped.

--show-control-chars

Show control characters 'as is' if they are not escaped.

--time=<field>

Show time in : access time (-u): atime, access, use; change time (-t): ctime, status. birth time: birth, creation;

-c

If the long listing format (e.g., -l, -o) is being used, print the status change time (the 'ctime' in the inode) instead of the modification time. When explicitly sorting by time (--sort=time or -t) or when not using a long listing format, sort according to the status change time.

-u

If the long listing format (e.g., -l, -o) is being used, print the status access time instead of the modification time. When explicitly sorting by time (--sort=time or -t) or when not using a long listing format, sort according to the access time.

--hide=<PATTERN>

do not list implied entries matching shell PATTERN (overridden by -a or -A)

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

do not list implied entries matching shell PATTERN

--ignore-backups, -B

Ignore entries which end with ~.

--sort=<field>

Sort by : name, none (-U), time (-t), size (-S) or extension (-X)

-S

Sort by file size, largest first.

-t

Sort by modification time (the 'mtime' in the inode), newest first.

-v

Natural sort of (version) numbers in the filenames.

-X

Sort alphabetically by entry extension.

-U

Do not sort; list the files in whatever order they are stored in the directory. This is especially useful when listing very large directories, since not doing any sorting can be noticeably faster.

--dereference, -L

When showing file information for a symbolic link, show information for the file the link references rather than the link itself.

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

Do not dereference symlinks except when they link to directories and are given as command line arguments.

--dereference-command-line, -H

Do not dereference symlinks except when given as command line arguments.

--no-group, -G

Do not show group in long format.

--author

Show author in long format. On the supported platforms, the author always matches the file owner.

--all, -a

Do not ignore hidden files (files with names that start with '.').

--almost-all, -A

In a directory, do not ignore all file names that start with '.', only ignore '.' and '..'.

--directory, -d

Only list the names of directories, rather than listing directory contents. This will not follow symbolic links unless one of --dereference-command-line (-H), --dereference (-L), or --dereference-command-line-symlink-to-dir is specified.

--human-readable, -h

Print human readable file sizes (e.g. 1K 234M 56G).

--si

Print human readable file sizes using powers of 1000 instead of 1024.

--inode, -i

print the index number of each file

--reverse, -r

Reverse whatever the sorting method is e.g., list files in reverse alphabetical order, youngest first, smallest first, or whatever.

--recursive, -R

List the contents of all directories recursively.

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

Assume that the terminal is COLS columns wide.

--color

Color output based on file type.

--indicator-style

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

--classify, -F

Append a character to each file name indicating the file type. Also, for regular files that are executable, append '*'. The file type indicators are '/' for directories, '@' for symbolic links, '|' for FIFOs, '=' for sockets, '>' for doors, and nothing for regular files.

--file-type

Same as --classify, but do not append '*'

-p

Append / indicator to directories.

--time-style=<TIME_STYLE>

time/date format with -l; see TIME_STYLE below

--full-time

like -l --time-style=full-iso

--context, -Z

print any security context of each file

md5sum

version: 0.0.12
md5sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

mkdir

version: 0.0.12
mkdir [OPTIONS] [dirs]...

Create the given DIRECTORY(ies) if they do not exist

Options

--help, -h

Print help information

--version, -V

Print version information

--mode, -m

set file mode (not implemented on windows)

--parents, -p

make parent directories as needed

--verbose, -v

print a message for each printed directory

mkfifo

version: 0.0.12
mkfifo [OPTION]... NAME...

Create a FIFO with the given name.

Options

--help, -h

Print help information

--version, -V

Print version information

--mode=<0666>, -m <0666>

file permissions for the fifo

-Z

set the SELinux security context to default type

--context=<CTX>

like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX

mknod

version: 0.0.12
mknod [OPTION]... NAME TYPE [MAJOR MINOR]

Create the special file NAME of the given TYPE.

Options

--help, -h

Print help information

--version, -V

Print version information

--mode=<MODE>, -m <MODE>

set file permission bits to MODE, not a=rw - umask

name of the new file

type of the new file (b, c, u or p)

major file type

minor file type

mktemp

version: 0.0.12
mktemp [OPTIONS] [template]...

create a temporary file or directory.

Options

--help, -h

Print help information

--version, -V

Print version information

--directory, -d

Make a directory instead of a file

--dry-run, -u

do not create anything; merely print a name (unsafe)

--quiet, -q

Fail silently if an error occurs.

--suffix=<SUFFIX>

append SUFFIX to TEMPLATE; SUFFIX must not contain a path separator. This option is implied if TEMPLATE does not end with X.

--tmpdir=<DIR>, -p <DIR>

interpret TEMPLATE relative to DIR; if DIR is not specified, use $TMPDIR ($TMP on windows) if set, else /tmp. With this option, TEMPLATE must not be an absolute name; unlike with -t, TEMPLATE may contain slashes, but mktemp creates only the final component

-t

Generate a template (using the supplied prefix and TMPDIR (TMP on windows) if set) to create a filename template [deprecated]

more

version: 0.0.12
more [OPTIONS] [files]...

A file perusal filter for CRT viewing.

Options

--help, -h

Print help information

--version, -V

Print version information

--silent, -d

Display help instead of ringing bell

Path to the files to be read

mv

version: 0.0.12
mv [OPTIONS] <files>...

Move SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

Options

--help, -h

Print help information

--version, -V

Print version information

--backup=<CONTROL>

make a backup of each existing destination file

-b

like --backup but does not accept an argument

--force, -f

do not prompt before overwriting

--interactive, -i

prompt before override

--no-clobber, -n

do not overwrite an existing file

--strip-trailing-slashes

remove any trailing slashes from each SOURCE argument

--suffix=<SUFFIX>, -S <SUFFIX>

override the usual backup suffix

--target-directory=<DIRECTORY>, -t <DIRECTORY>

move all SOURCE arguments into DIRECTORY

--no-target-directory, -T

treat DEST as a normal file

--update, -u

move only when the SOURCE file is newer than the destination file or when the destination file is missing

--verbose, -v

explain what is being done

nice

version: 0.0.12
nice [OPTIONS] [COMMAND]...

Options

--help, -h

Print help information

--version, -V

Print version information

--adjustment, -n

add N to the niceness (default is 10)

nl

version: 0.0.12
nl [OPTION]... [FILE]...

Options

--help

Print help information

--version, -V

Print version information

--body-numbering=<SYNTAX>, -b <SYNTAX>

use STYLE for numbering body lines

--section-delimiter=<CC>, -d <CC>

use CC for separating logical pages

--footer-numbering=<STYLE>, -f <STYLE>

use STYLE for numbering footer lines

--header-numbering=<STYLE>, -h <STYLE>

use STYLE for numbering header lines

--line-increment=<NUMBER>, -i <NUMBER>

line number increment at each line

--join-blank-lines=<NUMBER>, -l <NUMBER>

group of NUMBER empty lines counted as one

--number-format=<FORMAT>, -n <FORMAT>

insert line numbers according to FORMAT

--no-renumber, -p

do not reset line numbers at logical pages

--number-separator=<STRING>, -s <STRING>

add STRING after (possible) line number

--starting-line-number=<NUMBER>, -v <NUMBER>

first line number on each logical page

--number-width=<NUMBER>, -w <NUMBER>

use NUMBER columns for line numbers

nohup

version: 0.0.12
nohup <cmd>...

Run COMMAND ignoring hangup signals.

Options

--help, -h

Print help information

--version, -V

Print version information

nproc

version: 0.0.12
nproc [OPTIONS]

Print the number of cores available to the current process.

Options

--help, -h

Print help information

--version, -V

Print version information

--all

print the number of cores available to the system

--ignore

ignore up to N cores

numfmt

version: 0.0.12
numfmt [OPTIONS]

Convert numbers from/to human-readable strings

Options

--help, -h

Print help information

--version, -V

Print version information

--delimiter=<X>, -d <X>

use X instead of whitespace for field delimiter

--field=<FIELDS>

replace the numbers in these input fields (default=1) see FIELDS below

--from=<UNIT>

auto-scale input numbers to UNITs; see UNIT below

--to=<UNIT>

auto-scale output numbers to UNITs; see UNIT below

--padding=<N>

pad the output to N characters; positive N will right-align; negative N will left-align; padding is ignored if the output is wider than N; the default is to automatically pad if a whitespace is found

--header=<N>

print (without converting) the first N header lines; N defaults to 1 if not specified

--round=<METHOD>

use METHOD for rounding when scaling; METHOD can be: up,down, from-zero (default), towards-zero, nearest

--suffix=<SUFFIX>

print SUFFIX after each formatted number, and accept inputs optionally ending with SUFFIX

od

version: 0.0.12

dump files in octal and other formats

Options

--help

Print help information

--version, -V

Print version information

--address-radix=<RADIX>, -A <RADIX>

Select the base in which file offsets are printed.

--skip-bytes=<BYTES>, -j <BYTES>

Skip bytes input bytes before formatting and writing.

--read-bytes=<BYTES>, -N <BYTES>

limit dump to BYTES input bytes

--endian=<big|little>

byte order to use for multi-byte formats

--strings=<BYTES>, -S <BYTES>

NotImplemented: output strings of at least BYTES graphic chars. 3 is assumed when BYTES is not specified.

-a

named characters, ignoring high-order bit

-b

octal bytes

-c

ASCII characters or backslash escapes

-d

unsigned decimal 2-byte units

-D

unsigned decimal 4-byte units

-o

octal 2-byte units

-I

decimal 8-byte units

-L

decimal 8-byte units

-i

decimal 4-byte units

-l

decimal 8-byte units

-x

hexadecimal 2-byte units

-h

hexadecimal 2-byte units

-O

octal 4-byte units

-s

decimal 2-byte units

-X

hexadecimal 4-byte units

-H

hexadecimal 4-byte units

-e

floating point double precision (64-bit) units

-f

floating point double precision (32-bit) units

-F

floating point double precision (64-bit) units

--format=<TYPE>, -t <TYPE>

select output format or formats

--output-duplicates, -v

do not use * to mark line suppression

--width=<BYTES>, -w <BYTES>

output BYTES bytes per output line. 32 is implied when BYTES is not specified.

--traditional

compatibility mode with one input, offset and label.

paste

version: 0.0.12
paste [OPTIONS] [FILE]...

Write lines consisting of the sequentially corresponding lines from each FILE, separated by TABs, to standard output.

Options

--help, -h

Print help information

--version, -V

Print version information

--serial, -s

paste one file at a time instead of in parallel

--delimiters=<LIST>, -d <LIST>

reuse characters from LIST instead of TABs

pathchk

version: 0.0.12
pathchk [OPTIONS]

Check whether file names are valid or portable

Options

--help, -h

Print help information

--version, -V

Print version information

-p

check for most POSIX systems

-P

check for empty names and leading "-"

--portability

check for all POSIX systems (equivalent to -p -P)

pinky

version: 0.0.12
pinky [OPTIONS] [user]...

pinky - lightweight finger

Options

--help

Print help information

--version, -V

Print version information

-l

produce long format output for the specified USERs

-b

omit the user's home directory and shell in long format

-h

omit the user's project file in long format

-p

omit the user's plan file in long format

-s

do short format output, this is the default

-f

omit the line of column headings in short format

-w

omit the user's full name in short format

-i

omit the user's full name and remote host in short format

-q

omit the user's full name, remote host and idle time in short format

pr

version:
pr

Options

--help, -h

Print help information

printenv

version: 0.0.12
printenv [OPTIONS] [variables]...

Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all.

Options

--help, -h

Print help information

--version, -V

Print version information

--null, -0

end each output line with 0 byte rather than newline

printf

version:
printf

Options

--version
--help

ptx

version: 0.0.12
Usage: ptx [OPTION]... [INPUT]...   (without -G) or: ptx -G [OPTION]... [INPUT [OUTPUT]]

Options

--help, -h

Print help information

--version, -V

Print version information

--auto-reference, -A

output automatically generated references

--traditional, -G

behave more like System V 'ptx'

--flag-truncation=<STRING>, -F <STRING>

use STRING for flagging line truncations

--macro-name=<STRING>, -M <STRING>

macro name to use instead of 'xx'

--format=roff, -O

generate output as roff directives

--right-side-refs, -R

put references at right, not counted in -w

--sentence-regexp=<REGEXP>, -S <REGEXP>

for end of lines or end of sentences

--format=tex, -T

generate output as TeX directives

--word-regexp=<REGEXP>, -W <REGEXP>

use REGEXP to match each keyword

--break-file=<FILE>, -b <FILE>

word break characters in this FILE

--ignore-case, -f

fold lower case to upper case for sorting

--gap-size=<NUMBER>, -g <NUMBER>

gap size in columns between output fields

--ignore-file=<FILE>, -i <FILE>

read ignore word list from FILE

--only-file=<FILE>, -o <FILE>

read only word list from this FILE

--references=<FILE>, -r <FILE>

first field of each line is a reference

--width=<NUMBER>, -w <NUMBER>

output width in columns, reference excluded

pwd

version: 0.0.12
pwd [OPTIONS]

Display the full filename of the current working directory.

Options

--help, -h

Print help information

--version, -V

Print version information

--logical, -L

use PWD from environment, even if it contains symlinks

--physical, -P

avoid all symlinks

readlink

version: 0.0.12
readlink [OPTIONS] [files]...

Print value of a symbolic link or canonical file name.

Options

--help, -h

Print help information

--version, -V

Print version information

--canonicalize, -f

canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist

--canonicalize-existing, -e

canonicalize by following every symlink in every component of the given name recursively, all components must exist

--canonicalize-missing, -m

canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence

--no-newline, -n

do not output the trailing delimiter

--quiet, -q

suppress most error messages

--silent, -s

suppress most error messages

--verbose, -v

report error message

--zero, -z

separate output with NUL rather than newline

realpath

version: 0.0.12
realpath [OPTIONS] <files>...

print the resolved path

Options

--help, -h

Print help information

--version, -V

Print version information

--quiet, -q

Do not print warnings for invalid paths

--strip, -s

Only strip '.' and '..' components, but don't resolve symbolic links

--zero, -z

Separate output filenames with \0 rather than newline

--logical, -L

resolve '..' components before symlinks

--physical, -P

resolve symlinks as encountered (default)

--canonicalize-existing, -e

canonicalize by following every symlink in every component of the given name recursively, all components must exist

--canonicalize-missing, -m

canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence

relpath

version: 0.0.12
relpath [OPTIONS] <TO> [FROM]

Convert TO destination to the relative path from the FROM dir. If FROM path is omitted, current working dir will be used.

Options

--help, -h

Print help information

--version, -V

Print version information

-d

If any of FROM and TO is not subpath of DIR, output absolute path instead of relative

rm

version: 0.0.12
rm [OPTIONS] [files]...

Remove (unlink) the FILE(s)

Options

--help, -h

Print help information

--version, -V

Print version information

--force, -f

ignore nonexistent files and arguments, never prompt

--prompt before every removal, -i
-I

prompt once before removing more than three files, or when removing recursively. Less intrusive than -i, while still giving some protection against most mistakes

--interactive=<WHEN>

prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompts always

--one-file-system

when removing a hierarchy recursively, skip any directory that is on a file system different from that of the corresponding command line argument (NOT IMPLEMENTED)

--no-preserve-root

do not treat '/' specially

--preserve-root

do not remove '/' (default)

--recursive, -r

remove directories and their contents recursively

-R

Equivalent to -r

--dir, -d

remove empty directories

--verbose, -v

explain what is being done

--presume-input-tty

rmdir

version: 0.0.12
rmdir [OPTIONS] <dirs>...

Remove the DIRECTORY(ies), if they are empty.

Options

--help, -h

Print help information

--version, -V

Print version information

--ignore-fail-on-non-empty

ignore each failure that is solely because a directory is non-empty

--parents, -p

remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c' is similar to rmdir a/b/c a/b a

--verbose, -v

output a diagnostic for every directory processed

runcon

version: 0.0.12
runcon [OPTIONS] [ARG]...

Run command with specified security context.

Options

--help, -h

Print help information

--version, -V

Print version information

--compute, -c

Compute process transition context before modifying.

--user=<USER>, -u <USER>

Set user USER in the target security context.

--role=<ROLE>, -r <ROLE>

Set role ROLE in the target security context.

--type=<TYPE>, -t <TYPE>

Set type TYPE in the target security context.

--range=<RANGE>, -l <RANGE>

Set range RANGE in the target security context.

seq

version: 0.0.12
seq [OPTIONS] <numbers>...

Display numbers from FIRST to LAST, in steps of INCREMENT.

Options

--help, -h

Print help information

--version, -V

Print version information

--separator, -s

Separator character (defaults to \n)

--terminator, -t

Terminator character (defaults to \n)

--widths, -w

Equalize widths of all numbers by padding with zeros

sha1sum

version: 0.0.12
sha1sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha224sum

version: 0.0.12
sha224sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha256sum

version: 0.0.12
sha256sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha3-224sum

version: 0.0.12
sha3-224sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha3-256sum

version: 0.0.12
sha3-256sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha3-384sum

version: 0.0.12
sha3-384sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha3-512sum

version: 0.0.12
sha3-512sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha384sum

version: 0.0.12
sha384sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha3sum

version: 0.0.12
sha3sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

sha512sum

version: 0.0.12
sha512sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

shake128sum

version: 0.0.12
shake128sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

shake256sum

version: 0.0.12
shake256sum [OPTIONS] [FILE]...

Compute and check message digests.

Options

--help, -h

Print help information

--version, -V

Print version information

--binary, -b

read in binary mode

--check, -c

read hashsums from the FILEs and check them

--tag

create a BSD-style checksum

--text, -t

read in text mode (default)

--quiet, -q

don't print OK for each successfully verified file

--status, -s

don't output anything, status code shows success

--strict

exit non-zero for improperly formatted checksum lines

--warn, -w

warn about improperly formatted checksum lines

--bits=<BITS>

set the size of the output (only for SHAKE)

shred

version: 0.0.12
shred [OPTIONS]

Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.

Options

--help, -h

Print help information

--version, -V

Print version information

--force, -f

change permissions to allow writing if necessary

--iterations=<NUMBER>, -n <NUMBER>

overwrite N times instead of the default (3)

--size=<N>, -s <N>

shred this many bytes (suffixes like K, M, G accepted)

--remove, -u

truncate and remove file after overwriting; See below

--verbose, -v

show progress

--exact, -x

do not round file sizes up to the next full block; this is the default for non-regular files

--zero, -z

add a final overwrite with zeros to hide shredding

shuf

version: 0.0.12
shuf [OPTION]... [FILE]

Options

--help, -h

Print help information

--version, -V

Print version information

--echo=<ARG>, -e <ARG>

treat each ARG as an input line

--input-range=<LO-HI>, -i <LO-HI>

treat each number LO through HI as an input line

--head-count=<COUNT>, -n <COUNT>

output at most COUNT lines

--output=<FILE>, -o <FILE>

write result to FILE instead of standard output

--random-source=<FILE>

get random bytes from FILE

--repeat, -r

output lines can be repeated

--zero-terminated, -z

line delimiter is NUL, not newline

sleep

version: 0.0.12
sleep <NUMBER>...

Pause for NUMBER seconds.

Options

--help, -h

Print help information

--version, -V

Print version information

pause for NUMBER seconds

sort

version: 0.0.12
sort [OPTIONS] [--] [files]...

Display sorted concatenation of all FILE(s).

Options

--help

Print help information

--version

Print version information

--sort
--human-numeric-sort, -h

compare according to human readable sizes, eg 1M > 100k

--month-sort, -M

compare according to month name abbreviation

--numeric-sort, -n

compare according to string numerical value

--general-numeric-sort, -g

compare according to string general numerical value

--version-sort, -V

Sort by SemVer version number, eg 1.12.2 > 1.1.2

--random-sort, -R

shuffle in random order

--dictionary-order, -d

consider only blanks and alphanumeric characters

--merge, -m

merge already sorted files; do not sort

--check, -c

check for sorted input; do not sort

--check-silent, -C

exit successfully if the given file is already sorted,and exit with status 1 otherwise.

--ignore-case, -f

fold lower case to upper case characters

--ignore-nonprinting, -i

ignore nonprinting characters

--ignore-leading-blanks, -b

ignore leading blanks when finding sort keys in each line

--output=<FILENAME>, -o <FILENAME>

write output to FILENAME instead of stdout

--reverse, -r

reverse the output

--stable, -s

stabilize sort by disabling last-resort comparison

--unique, -u

output only the first of an equal run

--key, -k

sort by a key

--field-separator, -t

custom separator for -k

--zero-terminated, -z

line delimiter is NUL, not newline

--parallel=<NUM_THREADS>

change the number of threads running concurrently to NUM_THREADS

--buffer-size=<SIZE>, -S <SIZE>

sets the maximum SIZE of each segment in number of sorted items

--temporary-directory=<DIR>, -T <DIR>

use DIR for temporaries, not $TMPDIR or /tmp

--compress-program=<PROG>

compress temporary files with PROG, decompress with PROG -d

--batch-size=<N_MERGE>

Merge at most N_MERGE inputs at once.

--files0-from=<NUL_FILES>

read input from the files specified by NUL-terminated NUL_FILES

--debug

underline the parts of the line that are actually used for sorting

split

version: 0.0.12
split [OPTIONS] [ARGS]

Create output files containing consecutive or interleaved sections of input

Options

--help, -h

Print help information

--version, -V

Print version information

--bytes, -b

put SIZE bytes per output file

--line-bytes, -C

put at most SIZE bytes of lines per output file

--lines, -l

put NUMBER lines/records per output file

--additional-suffix

additional suffix to append to output file names

--filter

write to shell COMMAND file name is $FILE (Currently not implemented for Windows)

--numeric-suffixes, -d

use numeric suffixes instead of alphabetic

--suffix-length, -a

use suffixes of length N (default 2)

--verbose

print a diagnostic just before each output file is opened

stat

version: 0.0.12
stat [OPTIONS] [files]...

Display file or file system status.

Options

--help, -h

Print help information

--version, -V

Print version information

--dereference, -L

follow links

--file-system, -f

display file system status instead of file status

--terse, -t

print the information in terse form

--format=<FORMAT>, -c <FORMAT>

use the specified FORMAT instead of the default; output a newline after each use of FORMAT

--printf=<FORMAT>

like --format, but interpret backslash escapes, and do not output a mandatory trailing newline; if you want a newline, include in FORMAT

stdbuf

version: 0.0.12
stdbuf [OPTIONS] <command>...

Run COMMAND, with modified buffering operations for its standard streams.

Mandatory arguments to long options are mandatory for short options too.

Options

--help, -h

Print help information

--version, -V

Print version information

--input=<MODE>, -i <MODE>

adjust standard input stream buffering

--output=<MODE>, -o <MODE>

adjust standard output stream buffering

--error=<MODE>, -e <MODE>

adjust standard error stream buffering

sum

version: 0.0.12
sum [OPTION]... [FILE]...

Checksum and count the blocks in a file. With no FILE, or when FILE is -, read standard input.

Options

--help, -h

Print help information

--version, -V

Print version information

-r

use the BSD sum algorithm, use 1K blocks (default)

--sysv, -s

use System V sum algorithm, use 512 bytes blocks

sync

version: 0.0.12
sync [OPTIONS] [files]...

Synchronize cached writes to persistent storage

Options

--help, -h

Print help information

--version, -V

Print version information

--file-system, -f

sync the file systems that contain the files (Linux and Windows only)

--data, -d

sync only file data, no unneeded metadata (Linux only)

tac

version: 0.0.12
[OPTION]... [FILE]...

Write each file to standard output, last line first.

Options

--help, -h

Print help information

--version, -V

Print version information

--before, -b

attach the separator before instead of after

--regex, -r

interpret the sequence as a regular expression

--separator, -s

use STRING as the separator instead of newline

tail

version: 0.0.12
tail [FLAG]... [FILE]...

Print the last 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long flags are mandatory for short flags too.

Options

--help, -h

Print help information

--version, -V

Print version information

--bytes, -c

Number of bytes to print

--follow, -f

Print the file as it grows

--lines, -n

Number of lines to print

--pid

with -f, terminate after process ID, PID dies

--quiet, --silent, -q

never output headers giving file names

--sleep-interval, -s

Number or seconds to sleep between polling the file when running with -f

--verbose, -v

always output headers giving file names

--zero-terminated, -z

Line delimiter is NUL, not newline

tee

version: 0.0.12
tee [OPTIONS] [file]...

Copy standard input to each FILE, and also to standard output.

Options

--help, -h

Print help information

--version, -V

Print version information

--append, -a

append to the given FILEs, do not overwrite

--ignore-interrupts, -i

ignore interrupt signals (ignored on non-Unix platforms)

test

version:
test

Options

timeout

version: 0.0.12
timeout [OPTIONS] <duration> <command>...

Start COMMAND, and kill it if still running after DURATION.

Options

--help, -h

Print help information

--version, -V

Print version information

--foreground

when not running timeout directly from a shell prompt, allow COMMAND to read from the TTY and get TTY signals; in this mode, children of COMMAND will not be timed out

-k
--preserve-status

exit with the same status as COMMAND, even when the command times out

--signal, -s

specify the signal to be sent on timeout; SIGNAL may be a name like 'HUP' or a number; see 'kill -l' for a list of signals

--verbose, -v

diagnose to stderr any signal sent upon timeout

touch

version: 0.0.12
touch [OPTIONS] [files]...

Update the access and modification times of each FILE to the current time.

Options

--help

Print help information

--version, -V

Print version information

-a

change only the access time

-t <STAMP>

use [[CC]YY]MMDDhhmm[.ss] instead of the current time

--date=<STRING>, -d <STRING>

parse argument and use it instead of current time

-m

change only the modification time

--no-create, -c

do not create any files

--no-dereference, -h

affect each symbolic link instead of any referenced file (only for systems that can change the timestamps of a symlink)

--reference=<FILE>, -r <FILE>

use this file's times instead of the current time

--time=<WORD>

change only the specified time: "access", "atime", or "use" are equivalent to -a; "modify" or "mtime" are equivalent to -m

tr

version: 0.0.12
tr [OPTIONS] [sets]...

translate or delete characters

Options

--help, -h

Print help information

--version, -V

Print version information

--complement, -c

use the complement of SET1

-C

same as -c

--delete, -d

delete characters in SET1, do not translate

--squeeze-repeats, -s

replace each sequence of a repeated character that is listed in the last specified SET, with a single occurrence of that character

--truncate, -t

first truncate SET1 to length of SET2

true

version:
true

Options

--help, -h

Print help information

truncate

version: 0.0.12
truncate [OPTIONS] <FILE>...

Shrink or extend the size of each file to the specified size.

Options

--help, -h

Print help information

--version, -V

Print version information

--io-blocks, -o

treat SIZE as the number of I/O blocks of the file rather than bytes (NOT IMPLEMENTED)

--no-create, -c

do not create files that do not exist

--reference=<RFILE>, -r <RFILE>

base the size of each file on the size of RFILE

--size=<SIZE>, -s <SIZE>

set or adjust the size of each file according to SIZE, which is in bytes unless --io-blocks is specified

tsort

version: 0.0.12
tsort [OPTIONS] FILE

Topological sort the strings in FILE. Strings are defined as any sequence of tokens separated by whitespace (tab, space, or newline). If FILE is not passed in, stdin is used instead.

Options

--help, -h

Print help information

--version, -V

Print version information

tty

version: 0.0.12
tty [OPTIONS]

Print the file name of the terminal connected to standard input.

Options

--help, -h

Print help information

--version, -V

Print version information

--silent, --quiet, -s

print nothing, only return an exit status

uname

version: 0.0.12
uname [OPTIONS]

Print certain system information. With no OPTION, same as -s.

Options

--help, -h

Print help information

--version, -V

Print version information

--all, -a

Behave as though all of the options -mnrsv were specified.

--kernel-name, -s

print the kernel name.

--nodename, -n

print the nodename (the nodename may be a name that the system is known by to a communications network).

--kernel-release, -r

print the operating system release.

--kernel-version, -v

print the operating system version.

--hardware-platform, -i

print the hardware platform (non-portable)

--machine, -m

print the machine hardware name.

--processor, -p

print the processor type (non-portable)

--operating-system, -o

print the operating system name.

unexpand

version: 0.0.12
unexpand [OPTION]... [FILE]...

Convert blanks in each FILE to tabs, writing to standard output. With no FILE, or when FILE is -, read standard input.

Options

--help, -h

Print help information

--version, -V

Print version information

--all, -a

convert all blanks, instead of just initial blanks

--first-only

convert only leading sequences of blanks (overrides -a)

--tabs, -t
--no-utf8, -U

interpret input file as 8-bit ASCII rather than UTF-8

uniq

version: 0.0.12
uniq [OPTIONS] [--] [files]...

Report or omit repeated lines.

Options

--help, -h

Print help information

--version, -V

Print version information

--all-repeated=<delimit-method>, -D <delimit-method>

print all duplicate lines. Delimiting is done with blank lines. [default: none]

--group=<group-method>

show all items, separating groups with an empty line. [default: separate]

--check-chars=<N>, -w <N>

compare no more than N characters in lines

--count, -c

prefix lines by the number of occurrences

--ignore-case, -i

ignore differences in case when comparing

--repeated, -d

only print duplicate lines

--skip-chars=<N>, -s <N>

avoid comparing the first N characters

--skip-fields=<N>, -f <N>

avoid comparing the first N fields

--unique, -u

only print unique lines

--zero-terminated, -z

end lines with 0 byte, not newline

unlink

version: 0.0.12
unlink <FILE>

Unlink the file at FILE.

Options

--help, -h

Print help information

--version, -V

Print version information

uptime

version: 0.0.12
uptime [OPTIONS]

Display the current time, the length of time the system has been up, the number of users on the system, and the average number of jobs in the run queue over the last 1, 5 and 15 minutes.

Options

--help, -h

Print help information

--version, -V

Print version information

--since, -s

system up since

users

version: 0.0.12
users [files]...

Print the user names of users currently logged in to the current host

Options

--help, -h

Print help information

--version, -V

Print version information

wc

version: 0.0.12
wc [OPTIONS] [files]...

Display newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified.

Options

--help, -h

Print help information

--version, -V

Print version information

--bytes, -c

print the byte counts

--chars, -m

print the character counts

--lines, -l

print the newline counts

--max-line-length, -L

print the length of the longest line

--words, -w

print the word counts

who

version: 0.0.12
who [OPTIONS] [FILE]...

Print information about users who are currently logged in.

Options

--help, -h

Print help information

--version, -V

Print version information

--all, -a

same as -b -d --login -p -r -t -T -u

--boot, -b

time of last system boot

--dead, -d

print dead processes

--heading, -H

print line of column headings

--login, -l

print system login processes

--lookup

attempt to canonicalize hostnames via DNS

-m

only hostname and user associated with stdin

--process, -p

print active processes spawned by init

--count, -q

all login names and number of users logged on

--runlevel, -r

print current runlevel

--short, -s

print only name, line, and time (default)

--time, -t

print last system clock change

--users, -u

list users logged in

--mesg, --message, --writable, -T

add user's message status as +, - or ?

-w

same as -T

whoami

version: 0.0.12
whoami

Print the current username.

Options

--help, -h

Print help information

--version, -V

Print version information

yes

version: 0.0.12
yes [STRING]...

yes ~ (uutils) repeatedly display a line with STRING (or 'y')

Options

--help, -h

Print help information

--version, -V

Print version information