Commands

June 2, 2026 ยท View on GitHub

Coreutils for Windows ships the following commands. Each command supports the standard --help flag for full syntax and options. Descriptions and links go to the upstream documentation:

For information on commands that collide with shell built-ins, see Shell conflicts.

CommandDescription
archDisplay machine architecture.
b2sumPrint or check BLAKE2b checksums.
base32Encode or decode data using base32 and print to standard output.
base64Encode or decode data using base64 and print to standard output.
basenamePrint NAME with any leading directory components removed.
basencEncode or decode data using one of several base encodings.
catConcatenate FILE(s), or standard input, to standard output.
cksumPrint CRC and size for each file.
commCompare two sorted files line by line.
cpCopy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
csplitSplit a file into sections determined by context lines.
cutPrint specified byte or field columns from each line of input.
datePrint or set the system date and time.
dfShow information about the file system on which each FILE resides.
dirnameStrip the last component from a file name.
duEstimate file space usage.
echoDisplay a line of text.
envSet each NAME to VALUE in the environment and run COMMAND.
exprPrint the value of EXPRESSION to standard output.
factorPrint the prime factors of the given NUMBER(s).
falseMake a command always exit with 1.
findSearch for files in a directory hierarchy.
fmtReformat paragraphs from input (or standard input) to stdout.
foldWrap each input line to fit a specified width.
grepPrint lines that match patterns.
headPrint the first 10 lines of each FILE to standard output.
hostnameDisplay or set the system's host name.
joinJoin two files on a common field.
laList directory contents, including hidden entries (alias for ls -A).
linkCall the link function to create a link named FILE2 to an existing FILE1.
lnMake links between files.
lsList directory contents.
md5sumPrint or check MD5 checksums.
mkdirCreate the given DIRECTORY(ies) if they do not exist.
mktempCreate a temporary file or directory.
mvMove SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
nlNumber lines of files.
nprocPrint the number of cores available to the current process.
numfmtConvert numbers from or to human-readable strings.
odDump files in octal and other formats.
pathchkCheck whether file names are valid or portable.
prPaginate or columnate FILE(s) for printing.
printenvDisplay the values of the specified environment VARIABLE(s).
printfPrint output based on a format string and arguments.
ptxProduce a permuted index of file contents.
pwdDisplay the full filename of the current working directory.
readlinkPrint the value of a symbolic link or canonical file name.
realpathPrint the resolved absolute path.
rmRemove (unlink) the FILE(s).
rmdirRemove the DIRECTORY(ies), if they are empty.
seqDisplay numbers from FIRST to LAST, in steps of INCREMENT.
sha1sumPrint or check SHA1 checksums.
sha224sumPrint or check SHA224 checksums.
sha256sumPrint or check SHA256 checksums.
sha384sumPrint or check SHA384 checksums.
sha512sumPrint or check SHA512 checksums.
shufShuffle the input by outputting a random permutation of input lines.
sleepPause for NUMBER seconds.
sortDisplay sorted concatenation of all FILE(s).
splitCreate output files containing consecutive or interleaved sections of input.
statDisplay file or file-system status.
sumChecksum and count the blocks in a file.
tacWrite each file to standard output, last line first.
tailPrint the last 10 lines of each FILE to standard output.
teeCopy standard input to each FILE, and also to standard output.
testCheck file types and compare values.
touchUpdate the access and modification times of each FILE.
trTranslate or delete characters.
trueMake a command always exit with 0.
truncateShrink or extend the size of each file to a specified size.
tsortTopological sort of the strings in FILE.
unexpandConvert blanks in each FILE to tabs.
uniqReport or omit repeated lines.
unlinkUnlink the file at FILE.
uptimeDisplay the current time, system uptime, user count, and load averages.
wcPrint newline, word, and byte counts for each FILE.
xargsBuild and execute command lines from standard input.
yesRepeatedly display a line with STRING (or y).