Results 1 to 6 of 6

Thread: man page question <print/copy text>

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Location
    /Linux/Userland
    Posts
    279

    Question man page question <print/copy text>

    For a man page, is there a way to copy all/part of the text displayed or to print it to PDF?
    Linux User 483705 @ http://counter.li.org/

  2. #2
    Join Date
    Jan 2008
    Location
    U.K East Anglia
    Posts
    2,581

    Default Re: man page question <print/copy text>

    if using kde, if you type the man page name in the location bar,then, select print,you can print that way.
    e.g. type # iwconfig will bring up the man page for iwconfig,then just print it. A lot easier than copy/paste

    Andy
    To be is to do = Immanuel Kant
    To do is to be = Descartes.
    Do be do be do = Frank Sinatra

    SuSE user since 7.0,Linux user since 1994

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,832
    Blog Entries
    15

    Default Re: man page question <print/copy text>

    Quote Originally Posted by zmdmw52
    For a man page, is there a way to copy all/part of the text displayed or
    to print it to PDF?
    Hi
    Just select with a mouse the bits you wish to copy, then in a document
    etc just press your center mouse button to paste.

    If you want the whole document just redirect it to a file eg;

    Code:
    man df > man_df.txt
    From that you can open with an editor and print to pdf or use text2wav
    if you want to listen to it

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
    up 2 days 0:54, 2 users, load average: 0.08, 0.07, 0.10
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


  4. #4
    Join Date
    Aug 2008
    Location
    /Linux/Userland
    Posts
    279

    Thumbs up Re: man page question <print/copy text>

    If you want the whole document just redirect it to a file eg;

    Code:

    man df > man_df.txt
    Thanks, that was very helpful!
    Linux User 483705 @ http://counter.li.org/

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: man page question <print/copy text>

    You can generate a PDF version by:

    Code:
    man -T ps route > route.ps
    ps2pdf route.ps
    and voila you have route.pdf, a printable man page for the route utility.

  6. #6
    Join Date
    Jun 2008
    Location
    Frisco, TX
    Posts
    1,233

    Default Re: man page question <print/copy text>

    On Fri, 2008-08-29 at 15:46 +0000, zmdmw52 wrote:
    > For a man page, is there a way to copy all/part of the text displayed or
    > to print it to PDF?
    >
    >


    If using kde, bring up konqueror and use man:/whatever

    Then you can print using KDE's normal print dialog which includes
    printing to PDF (etc).



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •