• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Unix Basics for Mac OS X > Viewing File Contents

Viewing File Contents

Unix offers a few tools for examining the contents of files:

  • cat (concatenate) lists one or more files to the Terminal window.

  • more outputs files in page-size chunks, enabling you to view the contents of large files one screen at a time.

  • head displays the first lines of a file.

  • tail displays the last lines of a file.

  • wc displays a count of the number of lines, words, and characters in a file.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint