Chapter 4. Viewing Files - Redirection, cat, more, pg, head, and tail Commands

First Things First

Before we can get into any serious work with UNIX commands, we’ll cover a few different ways to view files in this chapter. Many of the commands covered in this chapter for viewing files will be used in many chapters throughout the book.

Another topic important to many of the UNIX commands to be covered as well as viewing files is redirection. In this chapter, we’ll see some commonly used redirection techniques and then some methonds of viewing files. In fact, the very first viewing command that is covered in this chapter uses redirection, so it’s important that you understand the basics of redirection before proceeding further. Here’s what we’ll cover ...

Get UNIX® User’s Handbook, Second Edition 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.