less command
The working of less command is similar to that of more command but the only difference is the less command will display much faster in speed the desired output for which applied and also page up and page down option exists for the less command which is not in the case of more command discussed in above lines.
Syntax of less command:
less filename
Sample code:
To test the working of less command, let us take the same /var/log/messages which we implemented our more command.
cat /var/log/messages | less
Output:
Explanation:
Please note that we get the same output result like more command but only a difference in display speed and, we had page up, page down options through which we can scroll for continuing the output result logs by either using the mouse cursor or keyboard buttons.
Useful Commands For Filtering Text for Effective File Operations in Linux
In this article, let us learn about different commands used in Linux for filtering text to implement effective file operations on Linux Machines.