LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-29-2004, 11:01 AM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
manpages are your friend-but have you ever tired to print one ?


If you've been here at LQ for any length of time, and posted a question or two, then there's a strong possibility that someone will have suggested that you read the manpage for whatever.

For example, if you open a terminal window, as at the $ prompt, type man man you should see the man page for man - it tells you about man pages.

Now, if like me, you hate reading complex, unfamiliar, formatted documents from a screen, then once you know which man page you want/need to read,

in a terminal type

man <name> | col -b > ~/manpage.txt

Just remember to change the <name> part to the command or whatever you need to read. If you then look in your home directory, you should have a copy of that man page, called manpage.txt

You should then be able to print it out. Try it, with maybe man ls | col -b > ~/manpage.txt or maybe man dmesg | col -b > ~/manpage.txt

If you need more than one, you can change the command a little so the output txt message has a different name, in a moment of childishness I tried man dmesg | col -b > ~/dogshit.txt and of course, that produced the output of man dmesg as a text file called dogshit.txt

Ah, it's so much nicer to be able to read these bloody things on a piece of paper.

Maybe this might help you a little ?

regards

John
 
Old 02-29-2004, 01:34 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
or you could bypass the redirecting to the file all-together and just pipe the output of man directly to your print spooler.

man <name_of_program> | lpr -P HP_CLJ4500_DN

Last edited by megaspaz; 02-29-2004 at 01:51 PM.
 
Old 02-29-2004, 01:42 PM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Another trick if you don't want to read man pages in a console is to open konqueror and type the foloowing in the Location filed:

man:<name>

This will display the man page in konqueror where you can scroll through the entire page and find what your looking for easier. You can also print the page directly from konqueror.

Last edited by kilgoretrout; 02-29-2004 at 01:44 PM.
 
Old 03-01-2004, 11:31 AM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Well done megaspaz and kilgoretrout,

Excellent addititions. I'm all for anything that will make things easier with documentation for newbies (Ha, that's me included). Even if only to make using existing doc's easier to read.

keep up the good work both!

regards

John
 
  


Reply



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
manpages in yelp yadu Debian 0 11-09-2005 08:00 PM
NPTL manpages vghiware Programming 1 09-19-2005 10:58 PM
manpages not working plosiv Linux - General 1 11-11-2004 10:57 AM
Slackware manpages to PDA? loadedmind Slackware 2 07-29-2004 07:09 AM
more about manpages bigjohn Linux - Newbie 1 03-04-2004 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 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
Open Source Consulting | Domain Registration