...

/

Viewing Beginning and Ending Contents of Files

Viewing Beginning and Ending Contents of Files

Learn the commands to display the beginning and ending contents of any file.

We can use head and tail to view beginning and ending contents of file.

head:

Definition:

head, by default, prints the first 10 lines of each file to standard output. It reads the first few lines of any text given to it as an input and writes them on the display screen.

Syntax:

head [options] [file(s)]

Options:

...