Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-06-16
7
Medium Priority
?
391 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
5 Comments
 
LVL 37

Accepted Solution

by:
Harisha M G earned 256 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 248 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 248 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 248 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

824 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