Basic text search in less
November 2nd, 2006 toydi Posted in Common, less | Hits: 65423 | 13 Comments »
We usually use less as the default pager to display manuals and text files. Besides its basic navigation commands (up, down, pageup, pagedown, home, end), its text search commands may come in handy as well.
Let say we view a file:
less /usr/share/games/fortunes/linux
To search a keyword e.g. Linus, we type:
/Linus
A few more buttons to press:
- n – forward to the next found line.
- N – back to the previous line.
- ESC+u – turn off the highlights.
and of course, the q to quit, h for help and what else.. you have tips? ;-)







June 24th, 2010 at 8:01 pm
We are an innovative company, based in United Kingdom that provides a series of Web-based software applications that have helped customers create successful online initiatives. We provide all the services that a company needs to get online, from web designing to web hosting and above all website promotion in Google/Yahoo/MSN/AOL and other search engines.
January 5th, 2011 at 7:09 am
I was just thinking about that, hmm awesome I wonder. Well thanks for the post really useful, to me anyway.
May 6th, 2011 at 2:02 am
Interesting. Well, I just have added your blog to my bookmarks and I hope you’ll keep posting post like that. Regards,
May 11th, 2011 at 10:10 pm
Considerably, your blog post actually is very high this particular worthy topic. I concur jointly decisions and should thirstily expect see your approaching updates. Saying thanks will not just be adequate, considering the phenomenal lucidity in your writing. My goal is to at the grab your feeds to informed of the updates. Delightful work and far success in you as a customer endeavors
May 18th, 2011 at 8:06 pm
Extremely superior content. We basically discovered a site not to mention desired towards mention who We have definitely liked looking through a website not to mention blogposts. Anyways I’ll turn out to be following a give food not to mention I just desire towards study a website yet again.
May 18th, 2011 at 11:40 pm
Very nice post. I just stumbled upon your weblog and wished to say that I?I’ve genuinely enjoyed surfing around your blog posts. In any case I?beats by dre Ill be subscribing to your rss feed and I hope you write once more really soon!
August 13th, 2011 at 9:00 pm
Great Works .Thanks for your shares.
August 29th, 2011 at 8:48 am
Hi guys, this is a bit random but, I am looking for a licensed electrician in Tucson and I don’t know how to find one … I do know this local electrician is good. These guys are located in Tucson, not too far from my place I can’t find many reviews on them — Holy Ground Electric, 9420 E Golf Links Rd #252, Tucson, AZ 85730, (520) 971-6710
August 29th, 2011 at 9:20 am
Hello guys, this is a bit random but, I need to find a reliable electrician in Tucson and I don’t know who is good and who isn’t… I have heard this electrician in Tucson is good. They’re based out of located in Tucson, not too far from me I can’t find many reviews on them — Holy Ground Electric, 9420 E Golf Links Rd #252, Tucson, AZ 85730, (520) 971-6710
August 31st, 2011 at 2:18 am
Hello everyone, this might not be the best place to ask this, but I am looking for a reliable electrician in Tucson and I don’t know who is good and who isn’t… I’ve been told this local electrician is good. These guys are near my home …anyone know them? — Holy Ground Electric 9420 E Golf Links Rd #252 Tucson, AZ 85730 (520) 971-6710
November 18th, 2011 at 7:39 am
Howdy! I could have sworn I’ve been to this website before but after reading through some of the post I realized it’s new to me. Anyhow, I’m definitely happy I found it and I’ll be bookmarking and checking back frequently!
November 18th, 2011 at 10:56 am
Very good, I like your article, continue to work hard, I will often come to pay attention!
November 21st, 2011 at 1:43 pm
This is a very good article. I like it very much.