Solved

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

Posted on 2006-06-16
7
379 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now