The less command is a program to view the content of text files. As per the less manual, less program is similar to more program, but it allows both forward and backward movement in a file and it does not read the entire input file before starting, so with larger input files less is faster than text editors like vi.
less program is the replacement of the more program. It displays the content of a file in page by page manner and thus falls into the pager program category.
[yusuf@linux ~]$ less filename
[yusuf@linux ~]$ less hello.txt
This is line number 2.
Line Number 4
Content of a file using the less command in terminal.
We use the q key to exit less.
Help screen of the less
Have fun learning :-)
Copyright © 2014 - 2019 DYclassroom. All rights reserved.
rendered in 0.0134 sec