O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

File Viewing

cat

View files in their entirety.

less

View text files one page at a time.

head

View the first lines of a text file.

tail

View the last lines of a text file.

nl

View text files with their lines numbered.

strings

Display text that’s embedded in a binary file.

od

View data in octal (or other formats).

xxd

View data in hexadecimal.

acroread

View PDF files.

gv

View PostScript or PDF files.

xdvi

View TeX DVI files.

In Linux, you’ll encounter various types of files to view: plain text, PostScript, binary data, and more. Here we’ll explain how to view them. Note that commands for viewing graphics files are covered in Graphics and Screensavers, and video files in Video.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required