coreutils(1) General Commands Manual coreutils(1)

coreutils

coreutils [-h|--help] [subcommands]

Print help

Display machine architecture
encode/decode data and print to standard output 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.

encode/decode data and print to standard output 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.

Print NAME with any leading directory components removed If specified, also remove a trailing SUFFIX
Encode/decode data and print to standard output 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.

Concatenate FILE(s), or standard input, to standard output With no FILE, or when FILE is -, read standard input.
Change the group of each FILE to GROUP.
Change the mode of each FILE to MODE. With --reference, change the mode of each FILE to that of RFILE.
Change file owner and group
Run COMMAND with root directory set to NEWROOT.
Print CRC and size for each file
Compare two sorted files line by line.

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

With no options, produce three-column output. Column one contains lines unique to FILE1, column two contains lines unique to FILE2, and column three contains lines common to both files.

Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
Split a file into sections determined by context lines
Prints specified byte or field columns from each line of stdin or the input files
Print or set the system date and time
Copy, and optionally convert, a file system resource
Show information about the file system on which each FILE resides, or all file systems by default.
List directory contents. Ignore files and directories starting with a '.' by default
Output commands to set the LS_COLORS environment variable.
Strip last component from file name
Estimate file space usage
Display a line of text
Set each NAME to VALUE in the environment and run COMMAND
Convert tabs in each `FILE` to spaces, writing to standard output. With no `FILE`, or when `FILE` is `-`, read standard input.
Print the value of `EXPRESSION` to standard output
Print the prime factors of the given NUMBER(s). If none are specified, read from standard input.
Returns false, an unsuccessful exit status.

Immediately returns with the exit status `1`. When invoked with one of the recognized options it will try to write the help or version text. Any IO error during this operation is diagnosed, yet the program will also return `1`.

Reformat paragraphs from input files (or stdin) to stdout.
Writes each file (or standard input if no files are given) to standard output whilst breaking long lines
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).
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
Compute and check message digests.
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.

Print the numeric identifier (in hexadecimal) for the current host
Display or set the system's host name.
Print user and group information for each specified `USER`, or (when `USER` omitted) for the current user.
Copy SOURCE to DEST or multiple SOURCE(s) to the existing DIRECTORY, while setting permission modes and owner/group
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.

Send signal to processes or list information about signals.
Call the link function to create a link named FILE2 to an existing FILE1.
Make links between files.
Print user's login name
List directory contents. Ignore files and directories starting with a '.' by default
Create the given DIRECTORY(ies) if they do not exist
Create a FIFO with the given name.
Create the special file NAME of the given TYPE.
Create a temporary file or directory.
Display the contents of a text file
Move `SOURCE` to `DEST`, or multiple `SOURCE`(s) to `DIRECTORY`.
Run `COMMAND` with an adjusted niceness, which affects process scheduling. With no `COMMAND`, print the current niceness. Niceness values range from at least -20 (most favorable to the process) to 19 (least favorable to the process).
Number lines of files
Run COMMAND ignoring hangup signals.
Print the number of cores available to the current process. If the `OMP_NUM_THREADS` or `OMP_THREAD_LIMIT` environment variables are set, then they will determine the minimum and maximum returned value respectively.
Convert numbers from/to human-readable strings
Dump files in octal and other formats
Write lines consisting of the sequentially corresponding lines from each `FILE`, separated by `TAB`s, to standard output.
Check whether file names are valid or portable
Displays brief user information on Unix-based systems
Write content of given file or standard input to standard output with pagination filter
Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all.
Print output based off of the format string and proceeding arguments.
Produce a permuted index of file contents Output a permuted index, including context, of the words in the input files. Mandatory arguments to long options are mandatory for short options too. With no FILE, or when FILE is -, read standard input. Default is '-F /'.
Display the full filename of the current working directory.
Print value of a symbolic link or canonical file name.
Print the resolved path
Remove (unlink) the FILE(s)
Remove the DIRECTORY(ies), if they are empty.
Display numbers from FIRST to LAST, in steps of INCREMENT.
Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.
Shuffle the input by outputting a random permutation of input lines. Each output permutation is equally likely. With no FILE, or when FILE is -, read standard input.
Pause for NUMBER seconds.
Display sorted concatenation of all FILE(s). With no FILE, or when FILE is -, read standard input.
Create output files containing consecutive or interleaved sections of input
Display file or file system status.
Run `COMMAND`, with modified buffering operations for its standard streams.

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

Checksum and count the blocks in a file.

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

Synchronize cached writes to persistent storage
Write each file to standard output, last line first.
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.

Copy standard input to each FILE, and also to standard output.
Start `COMMAND`, and kill it if still running after `DURATION`.
Update the access and modification times of each `FILE` to the current time.
Translate or delete characters
Returns true, a successful exit status.

Immediately returns with the exit status `0`, except when invoked with one of the recognized options. In those cases it will try to write the help or version text. Any IO error during this operation causes the program to return `1` instead.

Shrink or extend the size of each file to the specified size.
Topological sort the strings in FILE. Strings are defined as any sequence of tokens separated by whitespace (tab, space, or newline), ordering them based on dependencies in a directed acyclic graph (DAG). Useful for scheduling and determining execution order. If FILE is not passed in, stdin is used instead.
Print the file name of the terminal connected to standard input.
Print certain system information. With no OPTION, same as -s.
Convert blanks in each `FILE` to tabs, writing to standard output. With no `FILE`, or when `FILE` is `-`, read standard input.
Report or omit repeated lines.
Unlink the file at `FILE`.
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.
Print the user names of users currently logged in to the current host.
Check file types and compare values.
Check file types and compare values.
List directory contents. Ignore files and directories starting with a '.' by default
Display newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified. With no FILE, or when FILE is -, read standard input.
Print information about users who are currently logged in.
Print the current username.
Repeatedly display a line with STRING (or 'y')
Print this message or the help of the given subcommand(s)
coreutils