[SOLVED] How to Print hard copy of man pages

Started by cantor_P, April 20, 2015, 03:46:57 PM

Previous topic - Next topic

cantor_P

I am trying to learn but switching between man docs and the program I am trying to set up is a real pain in the neck.
Please help a newbie Print a hard copy of the man pages for ntop? :-[
I learn from my mistakes, over and over again!!!

ZEROF

Hi,

I'm not sure that i understand you, but all info about command can be found online or using man command.

http://linux.die.net/man/8/ntop

Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*

augustwest

#2
Hi,
   
While I also agree there are other ways than printing out man pages, we can still help.
I will give you the example for the man page for ntop, you just change it to whatever you want.
man ntop | col -b | lp  
"man" formats the text with Ctrl-H backspaces and multiple letters to make bold text. That will bork your print job, thus the piping through col -b ,  then pipe to you printer .    
If you want to turn it to text and NOT print or print it later, you could do this
man ntop | col -b > ntop_man_page.txt  
for saving paper you should look into the program "screen" or maybe your getting hung up with one terminal, or you could log in multiple times.
<edit> one more thing , just in case you're not familiar with piping,  the "pipe" |  is shift+\  ( the one above the enter key on US qwerty keyboards)    also look into http://www.manpages.info/  and The Linux Documentation Project http://www.tldp.org/  
all at your fingertips, unless of course you're offline while working.

weVeg

una voce libera รจ sempre liberatrice
under_r00t

ostendali

Quote from: cantor_P on April 20, 2015, 03:46:57 PM
I am trying to learn but switching between man docs and the program I am trying to set up is a real pain in the neck.
Please help a newbie Print a hard copy of the man pages for ntop? :-[
this is hilarious...

just do a cat on whatever man page you want to print on a newfile and then you will be able to print it.

still I am not sure if this a problem or not what you are having.....

Next time some more useful questions pls.

thanks