The basic file, shell and text manipulation utilities of the GNU operating system
open sourceGPL-3.0-or-laterself-hostablefree
GNU Coreutils are the basic file, shell and text manipulation utilities of the GNU operating system: ls, cp, mv, rm, cat, sort, cut, head, tail, wc, date, dd, df, du, chmod, timeout, sha256sum, base64, seq, shuf, numfmt and about a hundred more. The package is the union of the old GNU fileutils, sh-utils and textutils, and its programs mostly conform to POSIX with BSD and GNU extensions, with more options and fewer arbitrary limits than many Unix versions. They are the standard command-line tools on most Linux distributions; on macOS, Homebrew installs them with a g prefix (gls, gdate) alongside the BSD tools.
Problems it solves
- my shell script uses GNU date and sed options that fail on the Mac's BSD tools
- get the same ls, sort and date behaviour on macOS as on my Linux servers
- kill a command in a script if it runs longer than a time limit
- check SHA-256 checksums of downloaded files from the command line
- sort a huge text file numerically or by a column in a shell pipeline
- shuffle lines or generate a sequence of numbers in a shell script
- show file sizes in human-readable units and convert numbers like 1.5G in scripts
- securely overwrite a file before deleting it
- split a large file into smaller pieces from the command line
- base64-encode a file or decode one from the command line
Features
- file utilities: ls, cp, mv, rm, ln, mkdir, chmod, chown, dd, df, du, stat, touch, shred, install
- text utilities: cat, sort, uniq, cut, paste, join, head, tail, wc, tr, split, csplit, fmt, nl, tac, shuf
- shell utilities: date, env, timeout, nohup, sleep, seq, printf, test, tee, stdbuf, nproc, numfmt
- checksums: md5sum, sha1sum, sha256sum, sha512sum, b2sum, cksum
- encoding: base32, base64, basenc
- mostly POSIX-conforming, with BSD and GNU extensions; POSIXLY_CORRECT for closer conformance
- man pages generated from --help; full manual in Texinfo
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what GNU Coreutils does.
- uutils coreutils Cross-platform Rust rewrite of the GNU coreutils
- BusyBox The Swiss Army Knife of Embedded Linux
