Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

List of POSIX commands

From Wikipedia, the free encyclopedia

Utilities listed in POSIX.1-2017
Utilities listed in POSIX.1-2017

This is a list of theshellcommands of the most recent version of the Portable Operating System Interface (POSIX) –IEEE Std 1003.1-2024 which is part of theSingle UNIX Specification (SUS). These commands are implemented in many shells on modernUnix,Unix-like and otheroperating 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 termfile refers to an item of afile system which can be aregular file, adirectory or several other more specializedtypes.

NameCategoryStatus (Option code)DescriptionFirst appeared
adminSCCSOptional (XSI)Create and administerSCCS filesPWB UNIX
aliasMiscMandatoryManage command aliases
arMiscMandatoryManagelibrary archivesVersion 1 AT&T UNIX
asaText processingOptional (FR)Interpretcarriage-control charactersSystem V
atProcess managementMandatoryExecute commands at a later timeVersion 7 AT&T UNIX
awkText processingMandatoryPattern scanning and processing languageVersion 7 AT&T UNIX
basenameFilesystemMandatoryReport non-directory portion of a pathnameVersion 7 AT&T UNIX
batchProcess managementMandatorySchedule commands to be executed in a batch queue
bcMiscMandatoryArbitrary-precision arithmetic calculatorVersion 6 AT&T UNIX
bgProcess managementOptional (UP)Move jobs to the background
ccC programmingOptional (CD)CompileCsource codeIEEE Std 1003.1-2024
calMiscOptional (XSI)Print a calendarVersion 5 AT&T UNIX
catFilesystemMandatoryConcatenate and print filesPDP-7 UNIX
cdFilesystemMandatoryChange the working directoryVersion 6 AT&T UNIX
cflowC programmingOptional (XSI)Generate a C-languagecall graphSystem V
chgrpFilesystemMandatoryChange file group ownershipPWB UNIX
chmodFilesystemMandatoryChange file modes/attributes/permissionsPDP-7 UNIX
chownFilesystemMandatoryChange file ownershipPDP-7 UNIX
cksumFilesystemMandatoryReport filechecksum and size4.4BSD
cmpFilesystemMandatoryCompare two filesVersion 1 AT&T UNIX
commText processingMandatorySelect or reject lines common to two filesVersion 4 AT&T UNIX
commandShell programmingMandatoryExecute a simple command
compressFilesystemOptional (XSI)Compress data4.3BSD
cpFilesystemMandatoryCopy filesPDP-7 UNIX
cronMiscMandatorySchedule periodic background workSystem V
csplitText processingMandatorySplit files based on contextPWB UNIX
ctagsC programmingOptional (SD)Create a tags file3BSD
cutText processingMandatoryCut out selected fields of each line of a fileSystem III
cxrefC programmingOptional (XSI)Generate aC-language program cross-reference tableSystem V
dateMiscMandatoryReport or change system date and timeVersion 1 AT&T UNIX
ddFilesystemMandatoryConvert and copy filesVersion 5 AT&T UNIX
deltaSCCSOptional (XSI)Make a delta (change) to an SCCS filePWB UNIX
dfFilesystemMandatoryReport free storage spaceVersion 1 AT&T UNIX
diffText processingMandatoryCompare two filesVersion 5 AT&T UNIX
dirnameFilesystemMandatoryReport the directory portion of a pathnameSystem III
duFilesystemMandatoryEstimate file space usageVersion 1 AT&T UNIX
echoShell programmingMandatoryWrite to standard outputVersion 2 AT&T UNIX
edText processingMandatoryThe standard text editorPDP-7 UNIX
envMiscMandatorySet the environment for command invocationSystem III
exText processingOptional (UP)Text editor1BSD
expandText processingMandatoryConvert tabs to spaces3BSD
exprShell programmingMandatoryEvaluate arguments as an expressionVersion 7 AT&T UNIX
falseShell programmingMandatoryExit immediately withstatus 1Version 7 AT&T UNIX
fcMiscOptional (UP)Process the command history list
fgProcess managementOptional (UP)Move a job to the foreground
fileFilesystemMandatoryReport type of filesVersion 4 AT&T UNIX
findFilesystemMandatoryFind filesVersion 1 AT&T UNIX
foldText processingMandatoryFilter for folding lines1BSD
fuserProcess managementOptional (XSI)Listprocess IDs of all processes that have one or more files openSystem V
gencatMiscMandatoryGenerate a formatted message catalog
getSCCSOptional (XSI)Get a version of an SCCS filePWB UNIX
getconfMiscMandatoryGet configuration values
getoptsShell programmingMandatoryParse utility options
gettextMiscMandatoryRetrieve text string from messages object
grepMiscMandatorySearch text for a patternVersion 4 AT&T UNIX
hashMiscMandatoryHash database access method
headText processingMandatoryCopy the first part of filesPWB UNIX[citation needed]
iconvText processingMandatoryCodeset conversionHP-UX
idMiscMandatoryReport user identitySystem V
ipcrmMiscOptional (XSI)Remove a message queue, semaphore set, or shared memory segment identifierSystem V
ipcsMiscOptional (XSI)Report interprocess communication facilities statusSystem V
jobsProcess managementOptional (UP)Report background jobs
joinText processingMandatoryMerges two sorted text files based on the presence of a common fieldVersion 7 AT&T UNIX
killProcess managementMandatoryTerminate or signal processesVersion 4 AT&T UNIX
lexC programmingOptional (CD)Generate programs forlexical tasksVersion 7 AT&T UNIX
linkFilesystemOptional (XSI)Create a hard link to a fileVersion 1 AT&T UNIX
lnFilesystemMandatoryLink filesVersion 1 AT&T UNIX
localeMiscMandatoryGet locale-specific information
localedefMiscMandatoryDefine locale environment
loggerShell programmingMandatoryLog messages4.3BSD
lognameMiscMandatoryReport the user's login name4.4BSD
lpText processingMandatorySend files to a printerSystem V
lsFilesystemMandatoryList directory contentsVersion 1 AT&T UNIX
m4MiscMandatoryMacro processorPWB UNIX
mailxMiscMandatoryProcess messagesVersion 1 AT&T UNIX
makeProgrammingOptional (SD)Maintain, update, and regenerate groups of programsPWB UNIX
manMiscMandatoryDisplay system documentationVersion 2 AT&T UNIX
mesgMiscMandatoryPermit or deny messagesVersion 1 AT&T UNIX
mkdirFilesystemMandatoryMake directoriesVersion 1 AT&T UNIX
mkfifoFilesystemMandatoryMakeFIFO special files4.4BSD[dubiousdiscuss]
moreText processingOptional (UP)Display files on a page-by-page basis3BSD
msgfmtMiscMandatoryCreate messages objects from messages object files
mvFilesystemMandatoryMove or rename filesVersion 1 AT&T UNIX
newgrpMiscMandatoryChange to a new groupVersion 6 AT&T UNIX
ngettextMiscMandatoryRetrieve text string from messages object with plural form
niceProcess managementMandatoryInvoke a utility with an altered nice valueVersion 4 AT&T UNIX
nlText processingOptional (XSI)Line numbering filterSystem III
nmC programmingOptional
(SD, XSI)
Write the name list of anobject fileVersion 1 AT&T UNIX
nohupProcess managementMandatoryInvoke a utility immune tohangupsVersion 4 AT&T UNIX
odMiscMandatoryDump files in various formatsVersion 1 AT&T UNIX
pasteText processingMandatoryMerge corresponding or subsequent lines of filesVersion 32V AT&T UNIX
patchText processingMandatoryApply changes to files4.3BSD
pathchkFilesystemMandatoryCheck pathnames
paxMiscMandatoryPortable archive interchange4.4BSD[citation needed]
prText processingMandatoryPaginate or columnate files for printingVersion 1 AT&T UNIX
printfShell programmingMandatoryWrite formatted output4.3BSD-Reno
prsSCCSOptional (XSI)Print an SCCS filePWB UNIX
psProcess managementMandatoryReport process statusVersion 4 AT&T UNIX
pwdFilesystemMandatoryPrint working directoryVersion 5 AT&T UNIX
readShell programmingMandatoryRead a line from standard input
readlinkFilesystemMandatoryPrint destination of a symbolic link
realpathFilesystemMandatoryReport thefully qualified path of a fileXPG4[1]
reniceProcess managementMandatorySet nice values of running processes4BSD
rmFilesystemMandatoryRemove file(s)Version 1 AT&T UNIX
rmdelSCCSOptional (XSI)Remove a delta from an SCCS filePWB UNIX
rmdirFilesystemMandatoryRemove empty directory(ies)Version 1 AT&T UNIX
sactSCCSOptional (XSI)Print current SCCS file-editing activitySystem III
sccsSCCSOptional (XSI)Front end for the SCCS subsystem4.3BSD
sedText processingMandatoryStream editorVersion 7 AT&T UNIX
shShell programmingMandatoryShell, the standard command language interpreterVersion 7 AT&T UNIX
(in earlier versions, sh was either theThompson shell or thePWB shell)
sleepShell programmingMandatorySuspend execution for an intervalVersion 4 AT&T UNIX
sortText processingMandatorySort, merge, or sequence check text filesVersion 1 AT&T UNIX
splitMiscMandatorySplit files into piecesVersion 3 AT&T UNIX
stringsC programmingMandatoryFind printable strings in files2BSD
stripC programmingOptional (SD)Remove unnecessary information from executable filesVersion 1 AT&T UNIX
sttyMiscMandatorySet the options for a terminalVersion 2 AT&T UNIX
tabsMiscMandatorySet terminal tabsPWB UNIX
tailText processingMandatoryCopy the last part of a filePWB UNIX[citation needed]
talkMiscOptional (UP)Talk to another user4.2BSD
teeShell programmingMandatoryDuplicate thestandard outputVersion 5 AT&T UNIX
testShell programmingMandatoryEvaluateexpressionVersion 7 AT&T UNIX
timeProcess managementMandatoryDisplay elapsed, system and kernel time used by the current shell or designated process.Version 3 AT&T UNIX[2]
timeoutProcess managementMandatoryRun command with a time limitVersion 3 AT&T UNIX
touchFilesystemMandatoryChange file access and modification timesVersion 7 AT&T UNIX
tputMiscMandatoryChangeterminal characteristicsSystem V
trText processingMandatoryTranslate charactersVersion 4 AT&T UNIX
trueShell programmingMandatoryExit immediately withstatus 0Version 7 AT&T UNIX
tsortText processingMandatoryTopological sortVersion 7 AT&T UNIX
ttyMiscMandatoryReport user'sterminal nameVersion 1 AT&T UNIX
typeMiscOptional (XSI)Displays how a name would be interpreted if used as a command
ulimitMiscOptional (XSI)Set or report file size limit
umaskMiscMandatoryGet or set file mode creation maskSystem III
unaliasMiscMandatoryRemove alias definitions
unameMiscMandatoryReport system namePWB UNIX
uncompressMiscOptional (XSI)Expand compressed data4.3BSD
unexpandText processingMandatoryConvert spaces to tabs3BSD
ungetSCCSOptional (XSI)Undo a previous get of an SCCS fileSystem III
uniqText processingMandatoryReport or filter out repeated lines in a fileVersion 3 AT&T UNIX
unlinkFilesystemOptional (XSI)Call the unlink functionVersion 1 AT&T UNIX
uucpNetworkOptional (UU)System-to-system copyVersion 7 AT&T UNIX
uudecodeNetworkMandatoryDecode a binary file4BSD
uuencodeNetworkMandatoryEncode a binary file4BSD
uustatNetworkOptional (UU)uucp status inquiry and job controlSystem III
uuxProcess managementOptional (UU)Remote command executionVersion 7 AT&T UNIX
valSCCSOptional (XSI)Validate SCCS filesSystem III
viText processingOptional (UP)Screen-oriented (visual) display editor1BSD
waitProcess managementMandatoryAwait process completionVersion 4 AT&T UNIX
wcText processingMandatoryLine, word and byte or character countVersion 1 AT&T UNIX
whatSCCSOptional (XSI)Identify SCCS filesPWB UNIX
whoSystem administrationOptional (XSI)Display who is on the systemVersion 1 AT&T UNIX
writeMiscMandatoryWrite to another user's terminalVersion 1 AT&T UNIX
xargsShell programmingMandatoryConstruct argument lists and invoke utilityPWB UNIX
xgettextC programmingOptional (CD)Extract gettext calls from C source code stringsIEEE Std 1003.1-2024
yaccC programmingOptional (CD)Yet anothercompiler compilerPWB UNIX
zcatText processingOptional (XSI)Expand and concatenate compressed data4.3BSD

See also

[edit]

References

[edit]
  1. ^IEEE Computer Society (December 1, 2008)."POSIX.1-2008 System Interfaces: realpath()".The Open Group. Base Specifications (Issue 7).doi:10.1109/IEEESTD.2008.4694976.ISBN 978-0-7381-4048-3.Archived from the original on September 18, 2024. RetrievedOctober 27, 2025.First released in CAE Specification: System Interface Definitions (XBD), Issue 4, Version 2 (August 1994).
  2. ^"FreeBSD Manual Pages: time".man.freebsd.org. July 7, 202. RetrievedMar 23, 2025.

External links

[edit]
The WikibookGuide to UNIX has a page on the topic of:Commands
Wikimedia Commons has media related toUnix reference cards.
File system
Processes
User environment
Text processing
Shell builtins
Searching
Documentation
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=List_of_POSIX_commands&oldid=1324422897"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp