LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > Linux - Certification
User Name
Password
Linux - Certification This forum is for the discussion of all topics relating to Linux certification.

Notices

Reply
 
Search this Thread
Old 11-02-2010, 07:51 PM   #1
Stephannn
Member
 
Registered: Oct 2010
Location: San Francisco, CA
Distribution: Snow Leopard, Ubuntu, RedHat
Posts: 64

Rep: Reputation: 14
Quick tip on MAN


Not sure if this is helpful, but I certainly don't memorize the alphabet soup of switches, and sometimes the man pages have the best info for a particular task. As lab tests are time sensitive, I'm finding it helpful to spit a man page out, rather than looking at it, try to memorize switches, and continue writing a script. You can redirect the output of MAN to the terminal by using the -P switch:

localhost # man -P cat gzip

or

localhost # man -P cat partimage

That'll make scrolling back up to double check something quicker and easier.

Last edited by Stephannn; 11-08-2010 at 02:55 PM.
 
Old 11-04-2010, 11:24 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

How does this make things easier?

After issuing man command I can go up and down a page, search, go to the end or beginning etc. All that is not possible with you solution, if you have very long man pages you might even run into the limit of lines that can be shown (scrolled back) in the terminal.

Last edited by druuna; 11-04-2010 at 12:03 PM. Reason: fixed spelling
 
Old 11-08-2010, 12:39 AM   #3
Stephannn
Member
 
Registered: Oct 2010
Location: San Francisco, CA
Distribution: Snow Leopard, Ubuntu, RedHat
Posts: 64

Original Poster
Rep: Reputation: 14
The problem with MAN's default activity is that if there are switches or other syntax, once you exit the MAN viewer, the info is gone, you can't scroll back to review while building a command. If the manage is too long for the buffer, you could use

# man PROGRAM > programmanpage.txt

Then use a text editor or some such. A second virtual terminal can do a similar feat as well.
 
Old 11-08-2010, 12:46 AM   #4
JoshyJ
Member
 
Registered: Nov 2003
Location: Sydney , Australia
Distribution: Fedora
Posts: 49

Rep: Reputation: 1
You can always just open up a second terminal window.
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tech Tip: Color man Pages LXer Syndicated Linux News 0 07-03-2009 09:40 AM
LXer: Tutorial: Quick Firefox Tip: Word Count Bookmarklet LXer Syndicated Linux News 0 11-06-2008 06:30 AM
quick tip for those soon to install phalse Red Hat 3 04-09-2004 04:57 PM
Quick Tip Looking_Lost LQ Suggestions & Feedback 2 02-20-2004 06:12 PM
Quick LILO tip (ie Avoid my Mistake) Linus VanPelt Linux - Newbie 1 03-31-2003 04:51 PM


All times are GMT -5. The time now is 10:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration