Processing Files Flashcards
cat
Displays a file on standard output (can be used to concatenate several files into one big file).
cut
Extracts specified sections from each line of text in a file.
dd
Copies blocks of data from one file to another (used to
copy data from devices).
diff
Compares two text files and finds any differences.
expand
Converts all tabs into spaces.
file
Displays the type of data in a file.
fold
Wraps each line of text to fit a specified width.
grep
Searches for regular expressions within a text file.
less
Displays a text file, one page at a time (can go backward also).
lpr
Prints files.
more
Displays a text file, one page at a time (goes forward only).
nl
Numbers all nonblank lines in a text file and prints the lines to standard output.
paste
Concatenates corresponding lines from several files.
patch
Updates a text file using the differences between the original and revised copy of the file.
sed
Copies a file to standard output while applying specified editing commands.
sort
Sorts lines in a text file.
split
Breaks up a file into several smaller files with specified size.
tac
Reverses a file (last line first and so on).
tail
Displays the last few lines of a file.
tr
Substitutes one group of characters for another throughout a file.
uniq
Eliminates duplicate lines from a text file.
wc
Counts the number of lines, words, and characters in a text file.
zcat
Displays a compressed file (after decompressing).
zless
Displays a compressed file one page at a time (can go backward also).
zmore
Displays a compressed file one page at a time.