The commands

The following programs modify or manipulate text from files and standard input:

cat [file]

Print file to standard output.

cut [files]

Cut out selected columns or fields from one or more files.

expand [files]

Convert Tabs to spaces in files.

fmt [files]

Format text in files to a specified width by filling lines and removing newline characters.

head [files]

Print the first few lines of files.

join file1 file2

Print a line for each pair of input lines, one each from file1 and file2, that have identical join fields.

nl [files]

Number the lines of files, which are concatenated in the output.

od [files]

Dump files in octal, hexadecimal, ASCII, and other formats.

paste files

Paste together corresponding lines of one or more files into vertical columns.

pr [file]

Convert a text file into a paginated, columnar version, with headers and page fills.

sort [file]

Sort lines in file alphabetically, numerically, or other ways.

split [infile] [outfile]

Split infile into a specified number of line groups; the output will go into a succession of files: outfileaa, outfileab, and so on.

tac [file]

Print file to standard output in reverse line order.

tail [files]

Print the last few lines of one or more files.

tr [string1 [string2]]

Translate characters by mapping from string1 to the corresponding character in string2.

unexpand [files]

Convert spaces to Tabs in files.

uniq [files]

Display only unique lines in files that are already sorted.

wc [files]

Print counts of characters, words, and lines for files.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.