Today I'm going to show you how to use the head and tail commands to view portions of text files. There are, of course, other commands that can be used to view text files. The cat command can be useful for viewing small text files while more and less can be good for larger files. But what if you're only interested in just the beginning or the end of a file? That's where head and tail come in.
Full story »