LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2018, 08:59 AM   #1
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,146
Blog Entries: 28

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Arrow 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!
 
Old 08-12-2018, 04:47 AM   #2
DarrenDrapkin
Member
 
Registered: Aug 2014
Location: Leeds, England
Distribution: Slackware x86 64 current
Posts: 66

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


Reply

Tags
cli, editor, less command


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Use History Command Effectively In Linux LXer Syndicated Linux News 0 03-01-2018 03:54 PM
LXer: How to Use Tar Command Effectively in Linux For Good Backup Solution LXer Syndicated Linux News 0 12-19-2016 09:27 AM
[SOLVED] how to use find command to use effectively. shravee AIX 2 08-22-2011 02:54 AM
LXer: 11 Simple Ways To Recover Your Screen on Linux and Unix LXer Syndicated Linux News 0 10-31-2008 04:20 AM
LXer: 9 Simple Ways To Recover Your Screen on Linux and Unix LXer Syndicated Linux News 0 08-22-2008 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration