Author Topic: [SOLVED] How to Print hard copy of man pages  (Read 4236 times)

cantor_P

  • Newbie
  • *
  • Posts: 1
    • View Profile
on: April 20, 2015, 02: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? :-[
« Last Edit: May 04, 2015, 08:48:28 PM by ZEROF »

I learn from my mistakes, over and over again!!!


ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #1 on: April 20, 2015, 06:05:15 PM
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

  • Newbie
  • *
  • Posts: 1
    • View Profile
Reply #2 on: April 28, 2015, 02:09:55 AM
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.
Code: [Select]
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
Code: [Select]
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.
« Last Edit: April 28, 2015, 02:12:14 AM by augustwest »



weVeg

  • Hero Member
  • *****
  • Posts: 737
    • View Profile
Reply #3 on: April 28, 2015, 01:30:52 PM

una voce libera รจ sempre liberatrice
under_r00t


ostendali

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 587
    • View Profile
Reply #4 on: April 29, 2015, 01:01:14 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