Solved

what is the command to save a man page to a file ?

Posted on 2006-06-16
7
386 Views
Last Modified: 2013-12-27
I am trying to read a long man page

So I want to save it in a file and  read it

what is the command to save a man page to a file ?
0
Comment
Question by:dmshawkat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 37

Accepted Solution

by:
Harisha M G earned 64 total points
ID: 16924319
Hi, have you tried:

man commandname > filename

---
Harish
0
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16924332
For example, if you want to see the man page of command "cd" then:

man cd > cd.txt
0
 
LVL 23

Assisted Solution

by:brettmjohnson
brettmjohnson earned 62 total points
ID: 16925220
You can use man -t for better formatting for printing.
You can use man -P to select a better pager for easier reading [you should at least use the 'less' pager].


0
 
LVL 7

Assisted Solution

by:imacgouf
imacgouf earned 62 total points
ID: 16925381
This article from Peachpit may also be useful to you..
http://www.peachpit.com/articles/article.asp?p=430844&seqNum=2&rl=1
Show you
Printing man Pages
To convert a man page to PDF:
To convert a man page to HTML:

You can also get man page directly online

http://bama.ua.edu/cgi-bin/man-cgi
http://socrates.berkeley.edu/cgi-bin/man.cgi?section=keyword&topic=.

0
 
LVL 3

Assisted Solution

by:anumalas
anumalas earned 62 total points
ID: 17029881
Hi

You can use the follwing way also... if you want to save multiple commands help in a same file...

at shell prompt

$spool /myman/manhelp.txt

$ man mount

$ man ls

$spool off

Hope this is helpful :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix, date minus 1, 2 or 3 days (last working day) 11 95
Unix/bash: scripted arithmetic 13 103
Access_log 17 183
how to write and save a unix script 12 39
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question