The less command is similar to the more command but provides extensive features. One important one is that it allows backward as well as forward movement in the file. Also, since it does not read the entire file before starting, it starts up faster:
Example:
$ less pom.xml
The keys Space, Enter, b, and q work the same way as with more. Apart from this, we can use the arrow keys to move horizontally and vertically.
While scrolling through large files, it’s useful to be able to go back to the start of the file, or to the end of the file, quickly. The g key will take us to the start of the file, and the G key will take us to the end of the file.