more, less - Peruse A File One Screen at a Time
There are two command line file viewers in Linux called more and less. More was the original file viewer written for UNIX, which had limited ability to move forwards and backwards through a file. Less, its younger brother was written to be an enhancement to more expanding the feature set and giving it additional functionality. Although many enhancements have been written for both utilities, even today less still has more capability then more. They can be invoked by:
more [options] file_name
less [options] file_name
This displays the beginning of the file on the screen. The next table lists a basic set of commands for more and less. Notice that more does not support use of the arrow keys to move forward to a backward in a file where as less supports this additional functionality. The f key will move forward through the file one page at a time, the return or enter key will move forward one line at a time and the enter key will move forward through the file one line at a time. The b key will move backwards through the file one page at a time.
Table 12 provides a summary of the keys used by more/less and what they do.
Home - Table Of Contents - Contact Us
CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005
Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version © Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.