• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

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

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
dmshawkat
Asked:
dmshawkat
4 Solutions
 
Harisha M GCommented:
Hi, have you tried:

man commandname > filename

---
Harish
0
 
Harisha M GCommented:
For example, if you want to see the man page of command "cd" then:

man cd > cd.txt
0
 
brettmjohnsonCommented:
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
 
imacgoufCommented:
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
 
anumalasCommented:
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now