GNU Core Utilities
Page Module:Message box/ambox.css has no content.
This article needs additional citations for verification. (June 2011) |
Page Module:Infobox/styles.css has no content.
| GNU Core Utilities | |
|---|---|
| [[Programmer|DeveloperTemplate:Pluralize from text]] | GNU Project |
| Written in | C, shell script[1] |
| Operating system | Unix-like |
| Type | Miscellaneous utilities |
| License | 2007, GPL 3.0 or later since version 6.10 2002, GPL 2.0 or later until version 6.9 |
| Website | www |
Script error: No such module "Check for conflicting parameters".
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 Page Template:Mono/styles.css has no content.POSIXLY_CORRECT 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
Currently, there are over 100 commands implemented by coreutils, with the commands 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
chcon– Changes file security context (SELinux)chgrp– Changes file group ownershipchown– Changes file user ownershipchmod– Changes file permissionscp– Copies filesdd– Copies and converts file datadf– Reports file system free spacedir– Likels -C -b; by default lists files in columns, sorted verticallydircolors– Configures colors used forlsoutputinstall– Copies files and sets file attributesln– Creates a link to a filels– Lists filesmkdir– Creates directoriesmkfifo– Creates named pipes (FIFOs)mknod– Creates block or character special filesmktemp– Creates temporary regular files or directoriesmv– Moves and renames filesrealpath– Reports the absolute or relative path of a filerm– Deletes filesrmdir– Deletes empty directoriesshred– Overwrites a file to hide its contents and optionally deletes itsync– Flushes file system bufferstouch– Changes file timestamps, creating files if they do not existtruncate– Sets the size of a file via truncation or extensionvdir– Likels -l -b; by default lists files in long format
Text utilities
b2sum– Computes and checks BLAKE2b message digestbase32– Encodes or decodes base32base64– Encodes or decodes base64basenc– Encodes or decodes various encodings including hexadecimal, base32, base64, and Z85cat– Concatenates filescksum– Report or compute the checksum of filescomm– Compares two sorted files line by linecsplit– Splits a file into sections determined by context linescut– Removes sections from each line of filesexpand– Converts tabs to spacesfmt– Formats textfold– Wraps each input line to fit in specified widthhead– Outputs the first part of filesjoin– Joins lines of two files on a common fieldmd5sum– Computes and checks MD5 message digestnl– Numbers lines of filesnumfmt– Formats numbersod– Dumps files in octal and other formatspaste– Merges lines of filesptx– Produces a permuted index of file contentspr– Paginates or columnates filessha1sum,sha224sum,sha256sum,sha384sum,sha512sum– Computes and checks SHA-1/SHA-2 message digestsshuf– Generates random permutationssort– Sorts lines of text filessplit– Splits a file into piecessum– Checksums and counts the blocks in a filetac– Concatenates files in reverse order, line by linetail– Outputs the last part of filestr– Translates or deletes characterstsort– Performs a topological sortunexpand– Converts spaces to tabsuniq– Removes duplicate lines from a sorted filewc– Reports the number of bytes, words, and lines in files
Shell utilities
arch– Reports machine hardware name (same asuname -m)basename– Removes the path prefix from a given pathnamechroot– Changes the root directorydate– Reports or sets the system date and timedirname– Strips non-directory suffix from file namedu– Shows disk usage on file systemsecho– Outputs textenv– Reports and modifies environment variablesexpr– Evaluates expressionsfactor– Factors numbersfalse– Does nothing but exit with unsuccessful statusgroups– Reports the groups of which the user is a memberhostid– Reports the numeric identifier for the current hostid– Reports the real or effective UID and GIDlink– Creates a link to a filelogname– Reports the user's login namenice– Modifies scheduling prioritynohup– Allows a command to continue running after logging outnproc– Queries the number of (active) processorspathchk– Checks whether file names are valid or portablepinky– A lightweight version of fingerprintenv– Reports environment variablesprintf– Formats textpwd– Reports the current working directoryreadlink– Reports the value of a symbolic linkruncon– Run command with specified security contextseq– Reports a sequence of numberssleep– Blocks (delays, waits) for a specified amount of timestat– Reports information about an inodestdbuf– Runs a command with custom standard streams configurationstty– Changes and reports terminal line settingstee– Sends output to multiple filestest– Evaluates an expressiontimeout– Runs a command with a time limittrue– Does nothing but exit with success statustty– Reports the terminal nameuname– Reports system informationunlink– Removes files viaunlink()functionuptime– Reports how long the system has been runningusers– Reports the user names of users currently logged into the current hostwho– Reports logged-in userswhoami– Reports the effective useridyes– Outputs a string repeatedly[– Synonym for test that enables expressions like[ expression ]
History
In 1990, David MacKenzie announced GNU fileutils.[2]
In 1991, MacKenzie announced GNU shellutils and GNU textutils.[3][4] Moreover, Jim Meyering became the maintainer of the packages (known now as coreutils) and has remained so since.[5]
In September 2002, the GNU coreutils were created by merging the earlier packages textutils, shellutils, and fileutils, along with some other miscellaneous utilities.[6]
In July 2007, the license of the GNU coreutils was updated from GPL-2.0-or-later to GPL-3.0-or-later.[7]
In April 2026, Canonical is planning to replace the standard, C-based coreutils package with one written in Rust in their release of Ubuntu 25.10 and 26.04 LTS.[8] A preview version of the package is currently available, though some complain about performance and security issues.[9]
See also
Lua error in mw.title.lua at line 404: bad argument #2 to 'title.new' (unrecognized namespace name '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
Page Template:Reflist/styles.css has no content.
- ^ Page Module:Citation/CS1/styles.css has no content."The GNU Core Utilities Open Source Project on Open Hub: Languages Page". openhub.net. Archived from the original on 28 March 2019. Retrieved 28 March 2019.
- ^ Page Module:Citation/CS1/styles.css has no content.MacKenzie, David J. (8 February 1990). "GNU file utilities release 1.0". groups.google.com. Archived from the original on 28 April 2023. Retrieved 24 September 2025.
- ^ Page Module:Citation/CS1/styles.css has no content.MacKenzie, David J. (16 July 1991). "GNU shell programming utilities released". groups.google.com. Archived from the original on 28 April 2023. Retrieved 28 April 2023.
- ^ Page Module:Citation/CS1/styles.css has no content.MacKenzie, David J. (22 August 1991). "new GNU file and text utilities released". groups.google.com. Archived from the original on 3 December 2024. Retrieved 24 September 2025.
- ^ Page Module:Citation/CS1/styles.css has no content."GNU's Who". gnu.org. Archived from the original on 28 April 2023. Retrieved 28 April 2023.
- ^ Page Module:Citation/CS1/styles.css has no content.Meyering, Jim (13 January 2003). "readme-package-renamed-to-coreutils". git.savannah.gnu.org. Archived from the original on 25 December 2019. Retrieved 15 August 2018.
- ^ Page Module:Citation/CS1/styles.css has no content.Meyering, Jim (23 July 2007). "copying: Update to Version 3". git.savannah.gnu.org. Archived from the original on 25 December 2019. Retrieved 15 August 2018.
- ^ Page Module:Citation/CS1/styles.css has no content.Rendek, Lubos (4 November 2025). "Ubuntu 26.04: Release Date and New Features in Resolute Raccoon". linuxconfig.org. Retrieved 10 November 2025.
- ^ Page Module:Citation/CS1/styles.css has no content.Larabel, Michael (15 September 2025). "Ubuntu 25.10's Rust Coreutils Transition Has Uncovered Performance Shortcomings". Phoronix. Archived from the original on 9 November 2025. Retrieved 9 November 2025.
External links
Page Module:Side box/styles.css has no content.Page Template:Sister project/styles.css has no content.
- Official website
- Page Module:Citation/CS1/styles.css has no content."GNU Coreutils". gnu.org. Retrieved 24 September 2025. - Manual
- Page Module:Citation/CS1/styles.css has no content."Readme". git.savannah.gnu.org. Retrieved 24 September 2025.
- Page Module:Citation/CS1/styles.css has no content."The Heirloom Toolchest". heirloom.sourceforge.net. Retrieved 24 September 2025. – An alternative set of utilities
- Page Module:Citation/CS1/styles.css has no content.Both, David (24 April 2018). "An introduction to the GNU Core Utilities". opensource.com. Retrieved 24 September 2025.
- Page Module:Citation/CS1/styles.css has no content."Rosetta Stone For *Nix". bhami.com. Retrieved 24 September 2025. – configurable list of equivalent programs for *nix systems.
- Page Module:Citation/CS1/styles.css has no content.Rösler, Wolfram (2007). "The Unix Acronym List". roesler-ac.de. Archived from the original on 6 August 2024. Retrieved 24 September 2025. – explains the names of many Unix commands.
- Page Module:Citation/CS1/styles.css has no content."The UNIX System Homepage". unix.org. Retrieved 24 September 2025.
Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Template:Core Utilities commands Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.