LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   9 Simple Ways to Effectively use Less Command in Linux (https://www.linuxquestions.org/questions/linux-general-1/9-simple-ways-to-effectively-use-less-command-in-linux-4175636163/)

onebuck 08-11-2018 08:59 AM

9 Simple Ways to Effectively use Less Command in Linux
 
Hi,

9 Simple Ways to Effectively use Less Command in Linux ;
Quote:

Last Updated on August 9, 2018 By Abhishek 2 Comments

Do more with less. Learn to use less command in Linux for viewing large files and tracking log files. Most common usage of the less command explained in this tutorial.
There are ways to read text files in Linux command line. Cat is perhaps the most elementary command that almost every Linux user knows in this regard. But cat is not always the best option for displaying the content of a file.
Imagine that you have a text file with over a thousand line. Using the cat command will simply fill the entire terminal screen with those lines. You cannot perform any more operations like searching for a particular text after you have used the cat command here.
This is where the less command helps you big time.
Hope this helps.
Have fun & enjoy!
:hattip:

DarrenDrapkin 08-12-2018 04:47 AM

Once you know how to use less, more, and other file viewers, on logs , try file parsing using grep and awk.


All times are GMT -5. The time now is 08:56 PM.