Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

GNU Core Utilities

From Wikipedia, the free encyclopedia
Collection of standard, Unix-based utilities from GNU
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "GNU Core Utilities" – news ·newspapers ·books ·scholar ·JSTOR
(June 2011) (Learn how and when to remove this message)

GNU Core Utilities
DeveloperGNU Project
Stable release
9.10[1] Edit this on Wikidata / 4 February 2026; 10 days ago (4 February 2026)
Written inC,shell script[2]
Operating systemUnix-like
TypeMiscellaneous utilities
License2007,GPL 3.0 or later since version 6.10
2002,GPL 2.0 or later until version 6.9
Websitewww.gnu.org/software/coreutils/
Repository

TheGNU Core Utilities orcoreutils is a collection ofGNUsoftware that implements many standard,Unix-basedshellcommands. The utilities generally providePOSIX compliant interface when thePOSIXLY_CORRECT environment variable is set, but otherwise offers a superset to the standard interface. For example, the utilities supportlong options and options after parameters. This environment variable enables a different functionality inBSD.

Similar collections are available in theFOSS ecosystem, with a slightly different scope and focus (less functionality), or license. For example,BusyBox which is licensed underGPL-2.0-only, andToybox which is licensed under0BSD.

Commands

[edit]

Currently, there are over 100 commands implemented by coreutils, with the commands listed below. Throughout this article and customary for Unix-based systems, the termfile refers to allfile system items including regular files and special files such as directories.

File utilities

[edit]
  • chcon – Changes file security context (SELinux)
  • chgrp – Changes file group ownership
  • chown – Changes file user ownership
  • chmod – Changes file permissions
  • cp – Copies files
  • dd – Copies and converts file data
  • df – Reports file system free space
  • dir – Likels -C -b; by default lists files in columns, sorted vertically
  • dircolors – Configures colors used forls output
  • install – Copies files and sets file attributes
  • ln – Creates a link to a file
  • ls – Lists files
  • mkdir – Creates directories
  • mkfifo – Createsnamed pipes (FIFOs)
  • mknod – Createsblock or character special files
  • mktemp – Createstemporary regular files or directories
  • mv – Moves and renames files
  • realpath – Reports the absolute or relative path of a file
  • rm – Deletes files
  • rmdir – Deletes empty directories
  • shred – Overwrites a file to hide its contents and optionally deletes it
  • sync – Flushes file system buffers
  • touch – Changes file timestamps, creating files if they do not exist
  • truncate – Sets the size of a file via truncation or extension
  • vdir – Likels -l -b; by default lists files in long format

Text utilities

[edit]
  • b2sum – Computes and checksBLAKE2b message digest
  • base32 – Encodes or decodesbase32
  • base64 – Encodes or decodesbase64
  • basenc – Encodes or decodes various encodings includinghexadecimal,base32,base64, and Z85
  • catConcatenates files
  • cksum – Report or compute the checksum of files
  • comm – Compares two sorted files line by line
  • csplit – Splits a file into sections determined by context lines
  • cut – Removes sections from each line of files
  • expand – Converts tabs to spaces
  • fmt – Formats text
  • fold – Wraps each input line to fit in specified width
  • head – Outputs the first part of files
  • join – Joins lines of two files on a common field
  • md5sum – Computes and checksMD5 message digest
  • nl – Numbers lines of files
  • numfmt – Formats numbers
  • od – Dumps files in octal and other formats
  • paste – Merges lines of files
  • ptx – Produces apermuted index of file contents
  • pr – Paginates or columnates files
  • sha1sum,sha224sum,sha256sum,sha384sum,sha512sum – Computes and checksSHA-1/SHA-2 message digests
  • shuf – Generates random permutations
  • sort – Sorts lines of text files
  • split – Splits a file into pieces
  • sum – Checksums and counts the blocks in a file
  • tac – Concatenates files in reverse order, line by line
  • tail – Outputs the last part of files
  • tr – Translates or deletes characters
  • tsort – Performs atopological sort
  • unexpand – Converts spaces to tabs
  • uniq – Removes duplicate lines from a sorted file
  • wc – Reports the number of bytes, words, and lines in files

Shell utilities

[edit]
  • arch – Reports machine hardware name (same asuname -m)
  • basename – Removes the path prefix from a given pathname
  • chroot – Changes the root directory
  • date – Reports or sets the system date and time
  • dirname – Strips non-directory suffix from file name
  • du – Shows disk usage on file systems
  • echo – Outputs text
  • env – Reports and modifiesenvironment variables
  • expr – Evaluates expressions
  • factorFactors numbers
  • false – Does nothing but exit with unsuccessful status
  • groups – Reports thegroups of which the user is a member
  • hostid – Reports the numeric identifier for the current host
  • id – Reports the real or effectiveUID andGID
  • link – Creates alink to a file
  • logname – Reports the user's login name
  • nice – Modifiesscheduling priority
  • nohup – Allows a command to continue running after logging out
  • nproc – Queries the number of (active) processors
  • pathchk – Checks whether file names are valid or portable
  • pinky – A lightweight version offinger
  • printenv – Reportsenvironment variables
  • printf – Formats text
  • pwd – Reports thecurrent working directory
  • readlink – Reports the value of asymbolic link
  • runcon – Run command with specified security context
  • seq – Reports a sequence of numbers
  • sleep – Blocks (delays, waits) for a specified amount of time
  • stat – Reports information about aninode
  • stdbuf – Runs a command with custom standard streams configuration
  • stty – Changes and reports terminal line settings
  • tee – Sends output to multiple files
  • test – Evaluates an expression
  • timeout – Runs a command with atime limit
  • true – Does nothing but exit with success status
  • tty – Reports theterminal name
  • uname – Reports system information
  • unlink – Removes files viaunlink() function
  • uptime – Reports how long the system has been running
  • users – Reports the user names of users currently logged into the current host
  • who – Reports logged-in users
  • whoami – Reports the effectiveuserid
  • yes – Outputs a string repeatedly
  • [ – Synonym fortest that enables expressions like[expression ]

History

[edit]

In 1990, David MacKenzie announcedGNU fileutils.[3]

In 1991, MacKenzie announcedGNU shellutils andGNU textutils.[4][5] Moreover, Jim Meyering became the maintainer of the packages (known now as coreutils) and has remained so since.[6]

In September 2002, theGNU coreutils were created by merging the earlier packagestextutils,shellutils, andfileutils, along with some other miscellaneous utilities.[7]

In July 2007, the license of the GNU coreutils was updated fromGPL-2.0-or-later toGPL-3.0-or-later.[8]

On April 2026, Canonical is planning to replace the standard,C-based coreutils package with one written inRust in their release ofUbuntu 25.10 and 26.04 LTS.[9] A preview version of the package is currently available, though some complain about performance and security issues.[10]

See also

[edit]

References

[edit]
  1. ^Pádraig Brady (4 February 2026)."coreutils-9.10 released [stable]". Retrieved4 February 2026.
  2. ^"The GNU Core Utilities Open Source Project on Open Hub: Languages Page".openhub.net.Archived from the original on 28 March 2019. Retrieved28 March 2019.
  3. ^MacKenzie, David J. (8 February 1990)."GNU file utilities release 1.0".groups.google.com.Archived from the original on 28 April 2023. Retrieved24 September 2025.
  4. ^MacKenzie, David J. (16 July 1991)."GNU shell programming utilities released".groups.google.com.Archived from the original on 28 April 2023. Retrieved28 April 2023.
  5. ^MacKenzie, David J. (22 August 1991)."new GNU file and text utilities released".groups.google.com.Archived from the original on 3 December 2024. Retrieved24 September 2025.
  6. ^"GNU's Who".gnu.org.Archived from the original on 28 April 2023. Retrieved28 April 2023.
  7. ^Meyering, Jim (13 January 2003)."readme-package-renamed-to-coreutils".git.savannah.gnu.org.Archived from the original on 25 December 2019. Retrieved15 August 2018.
  8. ^Meyering, Jim (23 July 2007)."copying: Update to Version 3".git.savannah.gnu.org.Archived from the original on 25 December 2019. Retrieved15 August 2018.
  9. ^Rendek, Lubos (4 November 2025)."Ubuntu 26.04: Release Date and New Features in Resolute Raccoon".linuxconfig.org. Retrieved10 November 2025.
  10. ^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. Retrieved9 November 2025.

External links

[edit]
The WikibookGuide to UNIX has a page on the topic of:Commands
History
Licenses
Software
Contributors
Other topics
File system
Text utilities
Shell utilities
File system
Processes
User environment
Text processing
Shell builtins
Searching
Documentation
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=GNU_Core_Utilities&oldid=1337060766"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp