Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
List of GNU Core Utilities commands
List article

This is a list of shell commands implemented by the GNU Core Utilities – a collection of utility programs that provide many commands found on Unix and Unix-like operating systems and specified by POSIX.

List

File Utilities

NameDescription
chconChanges file security context (SELinux)
chgrpChanges file group ownership
chownChanges file ownership
chmodChanges the permissions of a file or directory
cpCopies a file or directory
ddCopies and converts a file
dfShows disk free space on file systems
dirIs exactly like "ls -C -b". (Files are by default listed in columns and sorted vertically.)
dircolorsSet up color for ls
installCopies files and set attributes
lnCreates a link to a file
lsLists the files in a directory
mkdirCreates a directory
mkfifoMakes named pipes (FIFOs)
mknodMakes block or character special files
mktempCreates a temporary file or directory
mvMoves files or rename files
realpathReturns the resolved absolute or relative path for a file
rmRemoves (deletes) files, directories, device nodes and symbolic links
rmdirRemoves empty directories
shredOverwrites a file to hide its contents, and optionally deletes it
syncFlushes file system buffers
touchChanges file timestamps; creates file
truncateShrink or extend the size of a file to the specified size
vdirIs exactly like "ls -l -b". (Files are by default listed in long format.)

Text Utilities

NameDescription
b2sumComputes and checks BLAKE2b message digest
base32Encodes or decodes Base32, and prints result to standard output
base64Encodes or decodes Base64, and prints result to standard output
basencEncodes or decodes various encodings like Hexadecimal, Base32, Base64, Z85 etc., and prints result to standard output
catConcatenates and prints files on the standard output
cksumChecksums (IEEE Ethernet CRC-32) and count the bytes in a file.Supersedes other *sum utilities with -a option from version 9.0.
commCompares two sorted files line by line
csplitSplits a file into sections determined by context lines
cutRemoves sections from each line of files
expandConverts tabs to spaces
fmtSimple optimal text formatter
foldWraps each input line to fit in specified width
headOutputs the first part of files
joinJoins lines of two files on a common field
md5sumComputes and checks MD5 message digest
nlNumbers lines of files
numfmtReformat numbers
odDumps files in octal and other formats
pasteMerges lines of files
ptxProduces a permuted index of file contents
prConverts text files for printing
sha1sum,sha224sum,sha256sum,sha384sum,sha512sumComputes and checks SHA-1/SHA-2 message digests
shufgenerate random permutations
sortsort lines of text files
splitSplits a file into pieces
sumChecksums and counts the blocks in a file
tacConcatenates and prints files in reverse order line by line
tailOutputs the last part of files
trTranslates or deletes characters
tsortPerforms a topological sort
unexpandConverts spaces to tabs
uniqRemoves duplicate lines from a sorted file
wcPrints the number of bytes, words, and lines in files

Shell Utilities

NameDescription
archPrints machine hardware name (same as uname -m)
basenameRemoves the path prefix from a given pathname
chrootChanges the root directory
datePrints or sets the system date and time
dirnameStrips non-directory suffix from file name
duShows disk usage on file systems
echoDisplays a specified line of text
envDisplays and modifies environment variables
exprEvaluates expressions
factorFactors numbers
falseDoes nothing, but exits unsuccessfully
groupsPrints the groups of which the user is a member
hostidPrints the numeric identifier for the current host
idPrints real or effective UID and GID
linkCreates a link to a file
lognamePrint the user's login name
niceModifies scheduling priority
nohupAllows a command to continue running after logging out
nprocQueries the number of (active) processors
pathchkChecks whether file names are valid or portable
pinkyA lightweight version of finger
printenvPrints environment variables
printfFormats and prints data
pwdPrints the current working directory
readlinkDisplays value of a symbolic link
runconRun command with specified security context
seqPrints a sequence of numbers
sleepDelays for a specified amount of time
statReturns data about an inode
stdbufControls buffering for commands that use stdio
sttyChanges and prints terminal line settings
teeSends output to multiple files
testEvaluates an expression
timeoutRun a command with a time limit
trueDoes nothing, but exits successfully
ttyPrints terminal name
unamePrints system information
unlinkRemoves the specified file using the unlink function
uptimeTells how long the system has been running
usersPrints the user names of users currently logged into the current host
whoPrints a list of all users currently logged in
whoamiPrints the effective userid
yesPrints a string repeatedly
[A synonym for test; this program permits expressions like [ expression ].

See also

The Wikibook Guide to UNIX has a page on the topic of: Commands

References

  1. "README". https://git.savannah.gnu.org/cgit/coreutils.git/tree/README?h=v8.27#n8