You can use the Tail method to choose the order of the locating, then use the negative number option to decide the lines you want to display:

 tail -3 alphabetfile

Display the last lines of a file in Unix

19 Tools for handling text files on unix are basic, everyday-commands:

Bash scripting cheatsheet

Shell 教程