To display the last 50 lines of the file error.log:
Keep /var/log/error.log open, displaying to the standard output anything appended to the file
Frequently used variants often can be made into alias, for example:
Print a range of lines
grep is a command line text search utility. The name is taken from the first letters in global / regular expression / print.