From Juneday education
Jump to: navigation, search


tail - output the last part of files.

On this page we only give you a short introduction with a few examples. We encourage you to read the manual (man tail).

"tail is a program on Unix and Unix-like systems used to display the tail end of a text file or piped data. " tail

Example output

Output part of a file's content

$ tail -1 one-file.txt
/John Doe

Compare this to a printout of the entire content of the file:

$ cat one-file.txt
Hi there

This is just some text 
/John Doe