SlideShare a Scribd company logo
1 of 1
Download to read offline
GNU Coreutils Cheat Sheet (v1.00)
                Created by Peteris Krumins (peter@catonmat.net, www.catonmat.net -- good coders code, great coders reuse)


Utility     Description                                           Utility       Description
arch        Print machine hardware name                           nproc        Print the number of processors
base64      Base64 encode/decode strings or files                 od           Dump files in octal and other formats
basename    Strip directory and suffix from file names            paste        Merge lines of files
cat         Concatenate files and print on the standard output    pathchk      Check whether file names are valid or portable
chcon       Change SELinux context of file                        pinky        Lightweight finger
chgrp       Change group ownership of files                       pr           Convert text files for printing
chmod       Change permission modes of files                      printenv     Print all or part of environment
chown       Change user and group ownership of files              printf       Format and print data
chroot      Run command or shell with special root directory      ptx          Permuted index for GNU, with keywords in their context
cksum       Print CRC checksum and byte counts                    pwd          Print current directory
comm        Compare two sorted files line by line                 readlink     Display value of a symbolic link
cp          Copy files                                            realpath     Print the resolved file name
csplit      Split a file into context-determined pieces           rm           Delete files
cut         Remove parts of lines of files                        rmdir        Remove directories
date        Print or set the system date and time                 runcon       Run command with specified security context
dd          Convert a file while copying it                       seq          Print sequence of numbers to standard output
df          Summarize free disk space                             setuidgid    Run a command with the UID and GID of a specified user
dir         Briefly list directory contents                       sha1sum      Print or check SHA-1 digests
dircolors   Color setup for ls                                    shred        Overwrite files and devices to make it harder to recover data
dirname     Strip suffix from file name                           shuf         Shuffle lines of text
du          Summarize disk usage                                  sleep        Delay for a specified amount of time
echo        Write to the terminal                                 sort         Sort lines of text (with all kinds of options)
env         Run a program in a modified environment               split        Split a file into pieces
expand      Convert tabs to spaces                                stat         Display file or file system status
expr        Evaluate expressions                                  stdbuf       Run a command with modified I/O stream buffering
factor      Print prime factors of n                              stty         Change and print terminal line settings
false       Exit with a status code indicating failure            su           Run a shell with substitute user and group IDs
fmt         Simple text formatter                                 sum          Checksum and count the blocks in a file
fold        Wrap each input line to fit in specified width        sync         Synchronize data on disk with memory
getlimits   Print various platform dependent limits               tac          Concatenate and print files in reverse
groups      Print the groups a user is in                         tail         Output the last part of file(s)
head        Output first part of file(s)                          tee          Read from standard input and write to standard output and files
hostid      Print numeric host identifier                         test         Check file types and compare values
hostname    Set or print the name of current host system          timeout      Run a command with bounded time
id          Print real and effective UIDs and GIDs                touch        Change modification and access times of files
install     Copy files and set attributes                         tr           A filter to translate characters
join        Join lines of two files on a common field             true         Exit with a status code indicating success
kill        Send a signal to a process                            truncate     Truncate or extend the length of files
link        Create a hard link                                    tsort        Topological sort
ln          Create links between files                            tty          Print the name of the terminal connected to standard input
logname     Print user's login name                               uname        Print system information
ls          List files                                            unexpand     Convert blanks to tabs
md5sum      Compute checksums of files or strings                 uniq         Remove duplicate lines from a sorted file
mkdir       Make directories                                      unlink       Remove files via the unlink syscall
mkfifo      Make fifos (named pipes)                              uptime       Print system uptime and load
mknod       Make a fifo, character file, or block file            users        Print login names of users currently logged in
mktemp      Create a temporary file or directory, safely          vdir         Verbosely list directory contents
mv          Move or rename files                                  wc           Print the number of lines, words, and bytes in files
nice        Run a program with modified niceness                  who          Print who is currently logged in
nl          Number lines of files                                 whoami       Print effective user ID
nohup       Run a command immune to hangups                       yes          Output a string repeatedly until killed

More Related Content

What's hot (19)

8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux
LinuxLinux
Linux
 
Unix commands
Unix commandsUnix commands
Unix commands
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
Linux commands
Linux commands Linux commands
Linux commands
 
Unix cmd
Unix cmdUnix cmd
Unix cmd
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
Some basic unix commands
Some basic unix commandsSome basic unix commands
Some basic unix commands
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
 
basic-unix.pdf
basic-unix.pdfbasic-unix.pdf
basic-unix.pdf
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 

Viewers also liked

5 Simple Ways To A Healthy Brain
5 Simple Ways To A Healthy Brain5 Simple Ways To A Healthy Brain
5 Simple Ways To A Healthy BrainDrLiesa Harte
 
И. Иванова. Заявление № 9.
И. Иванова. Заявление № 9.И. Иванова. Заявление № 9.
И. Иванова. Заявление № 9.Irina Wickholm
 
Act estrategias de aprendizaje-ej-2014
Act estrategias de aprendizaje-ej-2014Act estrategias de aprendizaje-ej-2014
Act estrategias de aprendizaje-ej-2014m5132028
 
2014-04-03 Notizie dalle aziende
2014-04-03 Notizie dalle aziende2014-04-03 Notizie dalle aziende
2014-04-03 Notizie dalle aziendeRiso Scotti S.p.a.
 
Preliminary contents page draft
Preliminary contents page draftPreliminary contents page draft
Preliminary contents page draftasmediae15
 
Anteprima WEC Inside - 15 Aprile 2014
Anteprima WEC Inside - 15 Aprile 2014Anteprima WEC Inside - 15 Aprile 2014
Anteprima WEC Inside - 15 Aprile 2014WEC Italia
 
Lingerie sexy
Lingerie sexyLingerie sexy
Lingerie sexySexyTeddy
 

Viewers also liked (11)

5 Simple Ways To A Healthy Brain
5 Simple Ways To A Healthy Brain5 Simple Ways To A Healthy Brain
5 Simple Ways To A Healthy Brain
 
И. Иванова. Заявление № 9.
И. Иванова. Заявление № 9.И. Иванова. Заявление № 9.
И. Иванова. Заявление № 9.
 
Act estrategias de aprendizaje-ej-2014
Act estrategias de aprendizaje-ej-2014Act estrategias de aprendizaje-ej-2014
Act estrategias de aprendizaje-ej-2014
 
2014-04-03 Notizie dalle aziende
2014-04-03 Notizie dalle aziende2014-04-03 Notizie dalle aziende
2014-04-03 Notizie dalle aziende
 
Preliminary contents page draft
Preliminary contents page draftPreliminary contents page draft
Preliminary contents page draft
 
La web
La webLa web
La web
 
Anteprima WEC Inside - 15 Aprile 2014
Anteprima WEC Inside - 15 Aprile 2014Anteprima WEC Inside - 15 Aprile 2014
Anteprima WEC Inside - 15 Aprile 2014
 
Pbmsg311 tcl 120 vac rev a
Pbmsg311 tcl 120 vac rev aPbmsg311 tcl 120 vac rev a
Pbmsg311 tcl 120 vac rev a
 
Lingerie sexy
Lingerie sexyLingerie sexy
Lingerie sexy
 
Connectandcombine
ConnectandcombineConnectandcombine
Connectandcombine
 
Connect and combine
Connect and combineConnect and combine
Connect and combine
 

Similar to gnu-coreutils-cheat-sheet

Similar to gnu-coreutils-cheat-sheet (20)

Gnu coreutils-cheat-sheet
Gnu coreutils-cheat-sheetGnu coreutils-cheat-sheet
Gnu coreutils-cheat-sheet
 
Kali Linux Commands PDF-converted.pdf
Kali Linux Commands PDF-converted.pdfKali Linux Commands PDF-converted.pdf
Kali Linux Commands PDF-converted.pdf
 
Applecmdlista zs
Applecmdlista zsApplecmdlista zs
Applecmdlista zs
 
Perintah dasar terminal kali linux
Perintah dasar terminal kali linuxPerintah dasar terminal kali linux
Perintah dasar terminal kali linux
 
Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja
 
Basic basic solaris quick referent card
Basic basic solaris quick referent cardBasic basic solaris quick referent card
Basic basic solaris quick referent card
 
Wintel commands
Wintel commandsWintel commands
Wintel commands
 
CMD Command
CMD CommandCMD Command
CMD Command
 
Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 
Linux com
Linux comLinux com
Linux com
 
Unix Trainning Doc.pptx
Unix Trainning Doc.pptxUnix Trainning Doc.pptx
Unix Trainning Doc.pptx
 
Introduction to linux day1
Introduction to linux day1Introduction to linux day1
Introduction to linux day1
 
Sunadmin
SunadminSunadmin
Sunadmin
 
A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command line
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 

gnu-coreutils-cheat-sheet

  • 1. GNU Coreutils Cheat Sheet (v1.00) Created by Peteris Krumins (peter@catonmat.net, www.catonmat.net -- good coders code, great coders reuse) Utility Description Utility Description arch Print machine hardware name nproc Print the number of processors base64 Base64 encode/decode strings or files od Dump files in octal and other formats basename Strip directory and suffix from file names paste Merge lines of files cat Concatenate files and print on the standard output pathchk Check whether file names are valid or portable chcon Change SELinux context of file pinky Lightweight finger chgrp Change group ownership of files pr Convert text files for printing chmod Change permission modes of files printenv Print all or part of environment chown Change user and group ownership of files printf Format and print data chroot Run command or shell with special root directory ptx Permuted index for GNU, with keywords in their context cksum Print CRC checksum and byte counts pwd Print current directory comm Compare two sorted files line by line readlink Display value of a symbolic link cp Copy files realpath Print the resolved file name csplit Split a file into context-determined pieces rm Delete files cut Remove parts of lines of files rmdir Remove directories date Print or set the system date and time runcon Run command with specified security context dd Convert a file while copying it seq Print sequence of numbers to standard output df Summarize free disk space setuidgid Run a command with the UID and GID of a specified user dir Briefly list directory contents sha1sum Print or check SHA-1 digests dircolors Color setup for ls shred Overwrite files and devices to make it harder to recover data dirname Strip suffix from file name shuf Shuffle lines of text du Summarize disk usage sleep Delay for a specified amount of time echo Write to the terminal sort Sort lines of text (with all kinds of options) env Run a program in a modified environment split Split a file into pieces expand Convert tabs to spaces stat Display file or file system status expr Evaluate expressions stdbuf Run a command with modified I/O stream buffering factor Print prime factors of n stty Change and print terminal line settings false Exit with a status code indicating failure su Run a shell with substitute user and group IDs fmt Simple text formatter sum Checksum and count the blocks in a file fold Wrap each input line to fit in specified width sync Synchronize data on disk with memory getlimits Print various platform dependent limits tac Concatenate and print files in reverse groups Print the groups a user is in tail Output the last part of file(s) head Output first part of file(s) tee Read from standard input and write to standard output and files hostid Print numeric host identifier test Check file types and compare values hostname Set or print the name of current host system timeout Run a command with bounded time id Print real and effective UIDs and GIDs touch Change modification and access times of files install Copy files and set attributes tr A filter to translate characters join Join lines of two files on a common field true Exit with a status code indicating success kill Send a signal to a process truncate Truncate or extend the length of files link Create a hard link tsort Topological sort ln Create links between files tty Print the name of the terminal connected to standard input logname Print user's login name uname Print system information ls List files unexpand Convert blanks to tabs md5sum Compute checksums of files or strings uniq Remove duplicate lines from a sorted file mkdir Make directories unlink Remove files via the unlink syscall mkfifo Make fifos (named pipes) uptime Print system uptime and load mknod Make a fifo, character file, or block file users Print login names of users currently logged in mktemp Create a temporary file or directory, safely vdir Verbosely list directory contents mv Move or rename files wc Print the number of lines, words, and bytes in files nice Run a program with modified niceness who Print who is currently logged in nl Number lines of files whoami Print effective user ID nohup Run a command immune to hangups yes Output a string repeatedly until killed