Quick & easy reference to read files in Linux CLI

There are many ways to read files in linux using bash screen.

Command head <filename>, show the first few lines of the file.

Command cat <filename>, display the file content on screen, not recommended with files longer than 10 lines.

Command tail <filename>, used to show the last few lines of the file, it also has some parameters.
use tail -f <filename> to keep the file open for new updates to track the file updates on real-time.
use tail -n 10 <filename> to view last 10 lines of the file.

Command less <filename>, an easy way to navigate long files, this command allow you to navigate the file with keyboard up/down arrow keys easily and smoothly.