No doubt you will frequently use programs and tools that use the program less or less-like navigation to view and read file content or display output. At first, the control can seem a bit unintuitive. Here, in this process, we will show you the basics of how to navigate through a file using fewer controls.
To Start With: What Do You Need?
In order to implement this process, you will require a working installation of the CentOS 7 operating system with root privileges.
The Process
- To begin, log in as root and type the following command to open a program that uses less for navigation:
man man
- To navigate, press the up and down key to scroll up and down one line at a time, the spacebar to scroll down a page, and the b key to scroll up a page. You can search within the text using the forward slash key, /, followed by the search term, then press Return to search. Press n to jump to the next search result. Press the q key to exit.
How Does It Work?
Here, in this short process, we have shown you the very basics of less navigation, which is essential for reading man pages and is used by a lot of other programs throughout this book to display text. We only showed you the basic commands and there is much more to learn. Please read the less manual to find out more on man less command.