Common Shell Commands

CommandAction
grep pattern filenameSearches the file filename for the specified pattern or regular expression. (See Chapter 8; also refer to Chapter 11, “Introduction to Perl Programming,” for more information on regular expressions.)
less filenameViews the contents of filename one screen at a time. The more command is a synonym for less. (See Chapter 8.)
cat filenameDisplays (catenates) the contents of filename. cat is normally used with redirection or pipes to send a file’s contents through another command. (See Chapter 8.)
wc filenameDisplays the number of words, lines, and characters in filename. (See Chapter 8.)
diff file1 file2Compares the contents of file1 with the contents of file2 and then displays the differences between ...

Get FreeBSD6 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.