List of POSIX commands


This is a list of the shell commands of the most recent version of the Portable Operating System Interface IEEE Std 1003.1-2024 which is part of the Single UNIX Specification. These commands are implemented in many shells on modern Unix, Unix-like and other operating systems. This list does not cover commands for all versions of Unix and Unix-like shells nor other versions of POSIX.
As is typical in the context of a POSIX system, the term file refers to an item of a file system which can be a regular file, a directory or several other more specialized types.
Columns:
; Command: The text one enters to launch the command.
; Category: Functional categorization.
; Optionality: Indicates whether the command is mandatory or optional in order to achieve conformance. If the latter, then a code indicates the optional functionality group to which the command belongs.
; Description: Describes what the command does.
; First appeared: Identifies an operating system version in which the command was first provided.
CommandCategoryOptionalityDescriptionFirst appeared
adminSCCS Create and administer SCCS filesPWB UNIX
aliasMiscManage command aliases
arMiscManage library archivesVersion 1 AT&T UNIX
asaText processing Interpret carriage-control charactersSystem V
atProcess managementExecute commands at a later timeVersion 7 AT&T UNIX
awkText processingPattern scanning and processing languageVersion 7 AT&T UNIX
basenameFilesystemReport non-directory portion of a pathnameVersion 7 AT&T UNIX
batchProcess managementSchedule commands to be executed in a batch queue
bcMiscArbitrary-precision arithmetic calculatorVersion 6 AT&T UNIX
bgProcess management Move jobs to the background
ccC programming Compile C source codeIEEE Std 1003.1-2024
calMisc Print a calendarVersion 5 AT&T UNIX
catFilesystemConcatenate and print filesPDP-7 UNIX
cdFilesystemChange the working directoryVersion 6 AT&T UNIX
cflowC programming Generate a C-language call graphSystem V
chgrpFilesystemChange file group ownershipPWB UNIX
chmodFilesystemChange file modes/attributes/permissionsPDP-7 UNIX
chownFilesystemChange file ownershipPDP-7 UNIX
cksumFilesystemReport file checksum and size4.4BSD
cmpFilesystemCompare two filesVersion 1 AT&T UNIX
commText processingSelect or reject lines common to two filesVersion 4 AT&T UNIX
commandShell programmingExecute a simple command
compressFilesystem Compress data4.3BSD
cpFilesystemCopy filesPDP-7 UNIX
cronMiscSchedule periodic background workSystem V
csplitText processingSplit files based on contextPWB UNIX
ctagsC programming Create a tags file3BSD
cutText processingCut out selected fields of each line of a fileSystem III
cxrefC programming Generate a C-language program cross-reference tableSystem V
dateMiscReport or change system date and timeVersion 1 AT&T UNIX
ddFilesystemConvert and copy filesVersion 5 AT&T UNIX
deltaSCCS Make a delta to an SCCS filePWB UNIX
dfFilesystemReport free storage spaceVersion 1 AT&T UNIX
diffText processingCompare two filesVersion 5 AT&T UNIX
dirnameFilesystemReport the directory portion of a pathnameSystem III
duFilesystemEstimate file space usageVersion 1 AT&T UNIX
echoShell programmingWrite to standard outputVersion 2 AT&T UNIX
edText processingThe standard text editorPDP-7 UNIX
envMiscSet the environment for command invocationSystem III
exText processing Text editor1BSD
expandText processingConvert tabs to spaces3BSD
exprShell programmingEvaluate arguments as an expressionVersion 7 AT&T UNIX
falseShell programmingExit immediately with status 1Version 7 AT&T UNIX
fcMisc Process the command history list
fgProcess management Move a job to the foreground
fileFilesystemReport type of filesVersion 4 AT&T UNIX
findFilesystemFind filesVersion 1 AT&T UNIX
foldText processingFilter for folding lines1BSD
fuserProcess management List process IDs of all processes that have one or more files openSystem V
gencatMiscGenerate a formatted message catalog
getSCCS Get a version of an SCCS filePWB UNIX
getconfMiscGet configuration values
getoptsShell programmingParse utility options
gettextMiscRetrieve text string from messages object
grepMiscSearch text for a patternVersion 4 AT&T UNIX
hashMiscHash database access method
headText processingCopy the first part of filesPWB UNIX
iconvText processingCodeset conversionHP-UX
idMiscReport user identitySystem V
ipcrmMisc Remove a message queue, semaphore set, or shared memory segment identifierSystem V
ipcsMisc Report interprocess communication facilities statusSystem V
jobsProcess management Report background jobs
joinText processingMerges two sorted text files based on the presence of a common fieldVersion 7 AT&T UNIX
killProcess managementTerminate or signal processesVersion 4 AT&T UNIX
lexC programming Generate programs for lexical tasksVersion 7 AT&T UNIX
linkFilesystem Create a hard link to a fileVersion 1 AT&T UNIX
lnFilesystemLink filesVersion 1 AT&T UNIX
localeMiscGet locale-specific information
localedefMiscDefine locale environment
loggerShell programmingLog messages4.3BSD
lognameMiscReport the user's login name4.4BSD
lpText processingSend files to a printerSystem V
lsFilesystemList directory contentsVersion 1 AT&T UNIX
m4MiscMacro processorPWB UNIX
mailxMiscProcess messagesVersion 1 AT&T UNIX
makeProgramming Maintain, update, and regenerate groups of programsPWB UNIX
manMiscDisplay system documentationVersion 2 AT&T UNIX
mesgMiscPermit or deny messagesVersion 1 AT&T UNIX
mkdirFilesystemMake directoriesVersion 1 AT&T UNIX
mkfifoFilesystemMake FIFO special files4.4BSD
moreText processing Display files on a page-by-page basis3BSD
msgfmtMiscCreate messages objects from messages object files
mvFilesystemMove or rename filesVersion 1 AT&T UNIX
newgrpMiscChange to a new groupVersion 6 AT&T UNIX
ngettextMiscRetrieve text string from messages object with plural form
niceProcess managementInvoke a utility with an altered nice valueVersion 4 AT&T UNIX
nlText processing Line numbering filterSystem III
nmC programming
Write the name list of an object fileVersion 1 AT&T UNIX
nohupProcess managementInvoke a utility immune to hangupsVersion 4 AT&T UNIX
odMiscDump files in various formatsVersion 1 AT&T UNIX
pasteText processingMerge corresponding or subsequent lines of filesVersion 32V AT&T UNIX
patchText processingApply changes to files4.3BSD
pathchkFilesystemCheck pathnames
paxMiscPortable archive interchange4.4BSD
prText processingPaginate or columnate files for printingVersion 1 AT&T UNIX
printfShell programmingWrite formatted output4.3BSD-Reno
prsSCCS Print an SCCS filePWB UNIX
psProcess managementReport process statusVersion 4 AT&T UNIX
pwdFilesystemPrint working directoryVersion 5 AT&T UNIX
readShell programmingRead a line from standard input
readlinkFilesystemPrint destination of a symbolic link
realpathFilesystemReport the fully qualified path of a fileXPG4
reniceProcess managementSet nice values of running processes4BSD
rmFilesystemRemove fileVersion 1 AT&T UNIX
rmdelSCCS Remove a delta from an SCCS filePWB UNIX
rmdirFilesystemRemove empty directoryVersion 1 AT&T UNIX
sactSCCS Print current SCCS file-editing activitySystem III
sccsSCCS Front end for the SCCS subsystem4.3BSD
sedText processingStream editorVersion 7 AT&T UNIX
shShell programmingShell, the standard command language interpreterVersion 7 AT&T UNIX
sleepShell programmingSuspend execution for an intervalVersion 4 AT&T UNIX
sortText processingSort, merge, or sequence check text filesVersion 1 AT&T UNIX
splitMiscSplit files into piecesVersion 3 AT&T UNIX
stringsC programmingFind printable strings in files2BSD
stripC programming Remove unnecessary information from executable filesVersion 1 AT&T UNIX
sttyMiscSet the options for a terminalVersion 2 AT&T UNIX
tabsMiscSet terminal tabsPWB UNIX
tailText processingCopy the last part of a filePWB UNIX
talkMisc Talk to another user4.2BSD
teeShell programmingDuplicate the standard outputVersion 5 AT&T UNIX
testShell programmingEvaluate expressionVersion 7 AT&T UNIX
timeProcess managementDisplay elapsed, system and kernel time used by the current shell or designated process.Version 3 AT&T UNIX
timeoutProcess managementRun command with a time limitVersion 3 AT&T UNIX
touchFilesystemChange file access and modification timesVersion 7 AT&T UNIX
tputMiscChange terminal characteristicsSystem V
trText processingTranslate charactersVersion 4 AT&T UNIX
trueShell programmingExit immediately with status 0Version 7 AT&T UNIX
tsortText processingTopological sortVersion 7 AT&T UNIX
ttyMiscReport user's terminal nameVersion 1 AT&T UNIX
typeMisc Displays how a name would be interpreted if used as a command
ulimitMisc Set or report file size limit
umaskMiscGet or set file mode creation maskSystem III
unaliasMiscRemove alias definitions
unameMiscReport system namePWB UNIX
uncompressMisc Expand compressed data4.3BSD
unexpandText processingConvert spaces to tabs3BSD
ungetSCCS Undo a previous get of an SCCS fileSystem III
uniqText processingReport or filter out repeated lines in a fileVersion 3 AT&T UNIX
unlinkFilesystem Call the unlink functionVersion 1 AT&T UNIX
uucpNetwork System-to-system copyVersion 7 AT&T UNIX
uudecodeNetworkDecode a binary file4BSD
uuencodeNetworkEncode a binary file4BSD
uustatNetwork uucp status inquiry and job controlSystem III
uuxProcess management Remote command executionVersion 7 AT&T UNIX
valSCCS Validate SCCS filesSystem III
viText processing Screen-oriented display editor1BSD
waitProcess managementAwait process completionVersion 4 AT&T UNIX
wcText processingLine, word and byte or character countVersion 1 AT&T UNIX
whatSCCS Identify SCCS filesPWB UNIX
whoSystem administration Display who is on the systemVersion 1 AT&T UNIX
writeMiscWrite to another user's terminalVersion 1 AT&T UNIX
xargsShell programmingConstruct argument lists and invoke utilityPWB UNIX
xgettextC programming Extract gettext calls from C source code stringsIEEE Std 1003.1-2024
yaccC programming Yet another compiler compilerPWB UNIX
zcatText processing Expand and concatenate compressed data4.3BSD