GNU Core Utilities
Template:Short description Template:Refimprove Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".Template:Main other The GNU Core Utilities or coreutils is a collection of GNU software that implements many standard, Unix-based shell commands. The utilities generally provide POSIX compliant interface when the Template:Mono environment variable is set, but otherwise offers a superset to the standard interface. For example, the utilities support long options and options after parameters. This environment variable enables a different functionality in BSD.
Similar collections are available in the FOSS ecosystem, with a slightly different scope and focus (less functionality), or license. For example, BusyBox which is licensed under GPL-2.0-only, and Toybox which is licensed under 0BSD.
Commands
The commands implemented by coreutils are listed below. Throughout this article and customary for Unix-based systems, the term file refers to all file system items including regular files and special files such as directories.
File utilities
chconTemplate:Endash Changes file security context (SELinux)chgrpTemplate:Endash Changes file group ownershipchownTemplate:Endash Changes file user ownershipchmodTemplate:Endash Changes file permissionscpTemplate:Endash Copies filesddTemplate:Endash Copies and converts file datadfTemplate:Endash Reports file system free spacedirTemplate:Endash Likels -C -b; by default lists files in columns, sorted verticallydircolorsTemplate:Endash Configures colors used forlsoutputinstallTemplate:Endash Copies files and sets file attributeslnTemplate:Endash Creates a link to a filelsTemplate:Endash Lists filesmkdirTemplate:Endash Creates directoriesmkfifoTemplate:Endash Creates named pipes (FIFOs)mknodTemplate:Endash Creates block or character special filesmktempTemplate:Endash Creates temporary regular files or directoriesmvTemplate:Endash Moves and renames filesrealpathTemplate:Endash Reports the absolute or relative path of a filermTemplate:Endash Deletes filesrmdirTemplate:Endash Deletes empty directoriesshredTemplate:Endash Overwrites a file to hide its contents and optionally deletes itsyncTemplate:Endash Flushes file system bufferstouchTemplate:Endash Changes file timestamps; creating files if they do not existtruncateTemplate:Endash Sets the size of a file via truncation or extensionvdirTemplate:Endash Likels -l -b; by default lists files in long format
Text utilities
b2sumTemplate:Endash Computes and checks BLAKE2b message digestbase32Template:Endash Encodes or decodes base32base64Template:Endash Encodes or decodes base64basencTemplate:Endash Encodes or decodes various encodings including hexadecimal, base32, base64, and Z85catTemplate:Endash Concatenates filescksumTemplate:Endash Report or compute the checksum of filescommTemplate:Endash Compares two sorted files line by linecsplitTemplate:Endash Splits a file into sections determined by context linescutTemplate:Endash Removes sections from each line of filesexpandTemplate:Endash Converts tabs to spacesfmtTemplate:Endash Formats textfoldTemplate:Endash Wraps each input line to fit in specified widthheadTemplate:Endash Outputs the first part of filesjoinTemplate:Endash Joins lines of two files on a common fieldmd5sumTemplate:Endash Computes and checks MD5 message digestnlTemplate:Endash Numbers lines of filesnumfmtTemplate:Endash Formats numbersodTemplate:Endash Dumps files in octal and other formatspasteTemplate:Endash Merges lines of filesptxTemplate:Endash Produces a permuted index of file contentsprTemplate:Endash Paginates or columnates filessha1sum,sha224sum,sha256sum,sha384sum,sha512sumTemplate:Endash Computes and checks SHA-1/SHA-2 message digestsshufTemplate:Endash Generates random permutationssortTemplate:Endash Sorts lines of text filessplitTemplate:Endash Splits a file into piecessumTemplate:Endash Checksums and counts the blocks in a filetacTemplate:Endash Concatenates files in reverse order; line by linetailTemplate:Endash Outputs the last part of filestrTemplate:Endash Translates or deletes characterstsortTemplate:Endash Performs a topological sortunexpandTemplate:Endash Converts spaces to tabsuniqTemplate:Endash Removes duplicate lines from a sorted filewcTemplate:Endash Reports the number of bytes, words, and lines in files
Shell utilities
archTemplate:Endash Reports machine hardware name; same asuname -mbasenameTemplate:Endash Removes the path prefix from a given pathnamechrootTemplate:Endash Changes the root directorydateTemplate:Endash Reports or sets the system date and timedirnameTemplate:Endash Strips non-directory suffix from file nameduTemplate:Endash Shows disk usage on file systemsechoTemplate:Endash Outputs textenvTemplate:Endash Reports and modifies environment variablesexprTemplate:Endash Evaluates expressionsfactorTemplate:Endash Factors numbersfalseTemplate:Endash Does nothing but exit with unsuccessful statusgroupsTemplate:Endash Reports the groups of which the user is a memberhostidTemplate:Endash Reports the numeric identifier for the current hostidTemplate:Endash Reports the real or effective UID and GIDlinkTemplate:Endash Creates a link to a filelognameTemplate:Endash Reports the user's login nameniceTemplate:Endash Modifies scheduling prioritynohupTemplate:Endash Allows a command to continue running after logging outnprocTemplate:Endash Queries the number of (active) processorspathchkTemplate:Endash Checks whether file names are valid or portablepinkyTemplate:Endash A lightweight version of fingerprintenvTemplate:Endash Reports environment variablesprintfTemplate:Endash Formats textpwdTemplate:Endash Reports the current working directoryreadlinkTemplate:Endash Reports the value of a symbolic linkrunconTemplate:Endash Run command with specified security contextseqTemplate:Endash Reports a sequence of numberssleepTemplate:Endash Blocks (delays, waits) for a specified amount of timestatTemplate:Endash Reports information about an inodestdbufTemplate:Endash Runs a command with custom standard streams configurationsttyTemplate:Endash Changes and reports terminal line settingsteeTemplate:Endash Sends output to multiple filestestTemplate:Endash Evaluates an expressiontimeoutTemplate:Endash Runs a command with a time limittrueTemplate:Endash Does nothing but exit with success statusttyTemplate:Endash Reports the terminal nameunameTemplate:Endash Reports system informationunlinkTemplate:Endash Removes files viaunlink()functionuptimeTemplate:Endash Reports how long the system has been runningusersTemplate:Endash Reports the user names of users currently logged into the current hostwhoTemplate:Endash Reports logged-in userswhoamiTemplate:Endash Reports the effective useridyesTemplate:Endash Outputs a string repeatedly[Template:Endash Synonym for test that enables expressions like[ expression ]
History
In 1990, David MacKenzie announced GNU fileutils.[1]
In 1991, MacKenzie announced GNU shellutils and GNU textutils.[2][3] Moreover, Jim Meyering became the maintainer of the packages (known now as coreutils) and has remained so since.[4]
In September 2002, the GNU coreutils were created by merging the earlier packages textutils, shellutils, and fileutils, along with some other miscellaneous utilities.[5]
In July 2007, the license of the GNU coreutils was updated from GPL-2.0-or-later to GPL-3.0-or-later.[6]
See also
Script error: No such module "Portal".
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
- Template:Annotated link
References
External links
- Template:Official website
- Manual
- README
- The Heirloom Toolchest - An alternative set of utilities
- opensource.com article: gnu-core-utilities on 4 Apr 2018 by David Both (Correspondent)
- Rosetta Stone For *Nix – configurable list of equivalent programs for *nix systems.
- The Unix Acronym List – explains the names of many Unix commands.
- The UNIX System Homepage
Template:GNU Template:Core Utilities commands Script error: No such module "Navbox".