Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save celsobessa/7f7f817d3403b3431b29a27b269cba63 to your computer and use it in GitHub Desktop.
Save celsobessa/7f7f817d3403b3431b29a27b269cba63 to your computer and use it in GitHub Desktop.

Revisions

  1. @shinokada shinokada created this gist Jul 22, 2021.
    169 changes: 169 additions & 0 deletions posix-commands-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,169 @@
    # POSIX commands Cheatsheat

    * [admin](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/admin.html) - create and administer SCCS files (**DEVELOPMENT**)
    * [alias](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/alias.html) - define or display aliases
    * [ar](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ar.html) - create and maintain library archives
    * [asa](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/asa.html) - interpret carriage-control characters
    * [at](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/at.html) - execute commands at a later time
    * [awk](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html) - pattern scanning and processing language
    * [basename](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/basename.html) - return non-directory portion of a pathname
    * [batch](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/batch.html) - schedule commands to be executed in a batch queue
    * [bc](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/bc.html) - arbitrary-precision arithmetic language
    * [bg](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/bg.html) - run jobs in the background
    * [c99](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html) - compile standard C programs
    * [cal](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cal.html) - print a calendar
    * [cat](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cat.html) - concatenate and print files
    * [cd](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html) - change the working directory
    * [cflow](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cflow.html) - generate a C-language flowgraph (**DEVELOPMENT**)
    * [chgrp](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chgrp.html) - change the file group ownership
    * [chmod](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html) - change the file modes
    * [chown](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chown.html) - change the file ownership
    * [cksum](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cksum.html) - write file checksums and sizes
    * [cmp](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cmp.html) - compare two files
    * [comm](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/comm.html) - select or reject lines common to two files
    * [command](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html) - execute a simple command
    * [compress](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/compress.html) - compress data
    * [cp](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cp.html) - copy files
    * [crontab](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html) - schedule periodic background work
    * [csplit](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/csplit.html) - split files based on context
    * [ctags](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ctags.html) - create a tags file (**DEVELOPMENT**, **FORTRAN**)
    * [cut](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cut.html) - cut out selected fields of each line of a file
    * [cxref](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cxref.html) - generate a C-language program cross-reference table (**DEVELOPMENT**)
    * [date](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/date.html) - write the date and time
    * [dd](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html) - convert and copy a file
    * [delta](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/delta.html) - make a delta (change) to an SCCS file (**DEVELOPMENT**)
    * [df](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/df.html) - report free disk space
    * [diff](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/diff.html) - compare two files
    * [dirname](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dirname.html) - return the directory portion of a pathname
    * [du](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/du.html) - estimate file space usage
    * [echo](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html) - write arguments to standard output
    * [ed](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html) - edit text
    * [env](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/env.html) - set the environment for command invocation
    * [ex](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html) - text editor
    * [expand](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/expand.html) - convert tabs to spaces
    * [expr](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/expr.html) - evaluate arguments as an expression
    * [false](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/false.html) - return false value
    * [fc](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/fc.html) - process the command history list
    * [fg](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/fg.html) - run jobs in the foreground
    * [file](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/file.html) - determine file type
    * [find](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html) - find files
    * [fold](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/fold.html) - filter for folding lines
    * [fort77](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/fort77.html) - FORTRAN compiler (**FORTRAN**)
    * [fuser](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/fuser.html) - list process IDs of all processes that have one or more files open
    * [gencat](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/gencat.html) - generate a formatted message catalog
    * [get](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/get.html) - get a version of an SCCS file (**DEVELOPMENT**)
    * [getconf](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getconf.html) - get configuration values
    * [getopts](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getopts.html) - parse utility options
    * [grep](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html) - search a file for a pattern
    * [hash](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/hash.html) - remember or report utility locations
    * [head](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/head.html) - copy the first part of files
    * [iconv](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/iconv.html) - codeset conversion
    * [id](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/id.html) - return user identity
    * [ipcrm](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ipcrm.html) - remove an XSI message queue, semaphore set, or shared memory segment identifier
    * [ipcs](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ipcs.html) - report XSI interprocess communication facilities status
    * [jobs](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/jobs.html) - display status of jobs in the current session
    * [join](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/join.html) - relational database operator
    * [kill](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/kill.html) - terminate or signal processes
    * [lex](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/lex.html) - generate programs for lexical tasks (**DEVELOPMENT**)
    * [link](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/link.html) - call link function
    * [ln](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ln.html) - link files
    * [locale](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/locale.html) - get locale-specific information
    * [localedef](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/localedef.html) - define locale environment
    * [logger](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/logger.html) - log messages
    * [logname](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/logname.html) - return the user's login name
    * [lp](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/lp.html) - send files to a printer
    * [ls](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html) - list directory contents
    * [m4](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/m4.html) - macro processor
    * [mailx](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mailx.html) - process messages
    * [make](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html) - maintain, update, and regenerate groups of programs (**DEVELOPMENT**)
    * [man](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/man.html) - display system documentation
    * [mesg](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mesg.html) - permit or deny messages
    * [mkdir](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkdir.html) - make directories
    * [mkfifo](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkfifo.html) - make FIFO special files
    * [more](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/more.html) - display files on a page-by-page basis
    * [mv](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mv.html) - move files
    * [newgrp](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/newgrp.html) - change to a new group
    * [nice](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nice.html) - invoke a utility with an altered nice value
    * [nl](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nl.html) - line numbering filter
    * [nm](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nm.html) - write the name list of an object file (**DEVELOPMENT**)
    * [nohup](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nohup.html) - invoke a utility immune to hangups
    * [od](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html) - dump files in various formats
    * [paste](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/paste.html) - merge corresponding or subsequent lines of files
    * [patch](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/patch.html) - apply changes to files
    * [pathchk](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pathchk.html) - check pathnames
    * [pax](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html) - portable archive interchange
    * [pr](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pr.html) - print files
    * [printf](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html) - write formatted output
    * [prs](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/prs.html) - print an SCCS file (**DEVELOPMENT**)
    * [ps](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ps.html) - report process status
    * [pwd](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pwd.html) - return working directory name
    * [qalter](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qalter.html) - alter batch job
    * [qdel](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qdel.html) - delete batch jobs
    * [qhold](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qhold.html) - hold batch jobs
    * [qmove](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qmove.html) - move batch jobs
    * [qmsg](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qmsg.html) - send message to batch jobs
    * [qrerun](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qrerun.html) - rerun batch jobs
    * [qrls](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qrls.html) - release batch jobs
    * [qselect](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qselect.html) - select batch jobs
    * [qsig](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qsig.html) - signal batch jobs
    * [qstat](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qstat.html) - show status of batch jobs
    * [qsub](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qsub.html) - submit a script
    * [read](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/read.html) - read from standard input into shell variables
    * [renice](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/renice.html) - set nice values of running processes
    * [rm](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rm.html) - remove directory entries
    * [rmdel](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rmdel.html) - remove a delta from an SCCS file (**DEVELOPMENT**)
    * [rmdir](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rmdir.html) - remove directories
    * [sact](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sact.html) - print current SCCS file-editing activity (**DEVELOPMENT**)
    * [sccs](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sccs.html) - front end for the SCCS subsystem (**DEVELOPMENT**)
    * [sed](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html) - stream editor
    * [sh](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html) - shell, the standard command language interpreter
    * [sleep](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sleep.html) - suspend execution for an interval
    * [sort](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sort.html) - sort, merge, or sequence check text files
    * [split](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/split.html) - split a file into pieces
    * [strings](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/strings.html) - find printable strings in files
    * [strip](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/strip.html) - remove unnecessary information from strippable files (**DEVELOPMENT**)
    * [stty](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/stty.html) - set the options for a terminal
    * [tabs](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tabs.html) - set terminal tabs
    * [tail](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tail.html) - copy the last part of a file
    * [talk](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/talk.html) - talk to another user
    * [tee](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tee.html) - duplicate standard input
    * [test](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html) - evaluate expression
    * [time](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/time.html) - time a simple command
    * [touch](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/touch.html) - change file access and modification times
    * [tput](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tput.html) - change terminal characteristics
    * [tr](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tr.html) - translate characters
    * [true](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/true.html) - return true value
    * [tsort](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tsort.html) - topological sort
    * [tty](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tty.html) - return user's terminal name
    * [type](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/type.html) - write a description of command type
    * [ulimit](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ulimit.html) - set or report file size limit
    * [umask](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/umask.html) - get or set the file mode creation mask
    * [unalias](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/unalias.html) - remove alias definitions
    * [uname](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/uname.html) - return system name
    * [uncompress](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/uncompress.html) - expand compressed data
    * [unexpand](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/unexpand.html) - convert spaces to tabs
    * [unget](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/unget.html) - undo a previous get of an SCCS file (**DEVELOPMENT**)
    * [uniq](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/uniq.html) - report or filter out repeated lines in a file
    * [unlink](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/unlink.html) - call the unlink function
    * [uucp](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/uucp.html) - system-to-system copy
    * [uudecode](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/uudecode.html) - decode a binary file
    * [uuencode](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/uuencode.html) - encode a binary file
    * [uustat](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/uustat.html) - uucp status enquiry and job control
    * [uux](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/uux.html) - remote command execution
    * [val](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/val.html) - validate SCCS files (**DEVELOPMENT**)
    * [vi](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html) - screen-oriented (visual) display editor
    * [wait](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/wait.html) - await process completion
    * [wc](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/wc.html) - word, line, and byte or character count
    * [what](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/what.html) - identify SCCS files (**DEVELOPMENT**)
    * [who](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/who.html) - display who is on the system
    * [write](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/write.html) - write to another user
    * [xargs](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html) - construct argument lists and invoke utility
    * [yacc](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html) - yet another compiler compiler (**DEVELOPMENT**)
    * [zcat](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/zcat.html) - expand and concatenate data

    ## Notice

    This page was generated with the Open Groups POSIX document site on 2021/07/22.
    You should refer the [original page](http://pubs.opengroup.org/onlinepubs/9699919799/).

    The all copyrights of these documents belong to them.