- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Man a file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2008 04:22 AM
тАО02-25-2008 04:22 AM
I have a manual in a separate file. How can I see it with man command? The following does not work:
$ man ./mymanfile.1
Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2008 04:49 AM
тАО02-25-2008 04:49 AM
Re: Man a file
man should be supplied with command not filename.
>I have a manual in a separate file
What does it mean? Does you have that file in text simple file. If so then you can use 'more' command to view its content
>./mymanfile.1
./ notation is used for executing script kinda file. The use demonstrated in above command is irrelevant I guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2008 05:02 AM
тАО02-25-2008 05:02 AM
Re: Man a file
I was given a compiled program with a manual attached in typical manual format. How can I see its formatted contents?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2008 05:40 AM
тАО02-25-2008 05:40 AM
Solutionnroff -man ./mymanfile.1 | col -b |more
The man pages are usually formatted with the {n|t}roff package and the "man" document style. The "col -b" takes care of some backspace/bolding/underlining escape characters that may affest the screen output.
If the man page is very plain and has minimal formatting commands built in, you can also cat it or more it but you haveto read through the formatting statements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2008 05:42 AM
тАО02-25-2008 05:42 AM
Re: Man a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2008 08:44 AM
тАО02-25-2008 08:44 AM
Re: Man a file
Linux's "man" command allows you to directly view a file that is formatted like a man page but not (yet) placed in the MANPATH directories.
Unfortunately, HP-UX's "man" command does not have that feature: the nroff command (as described by TTr) must be used instead.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2008 01:34 PM
тАО02-25-2008 01:34 PM
Re: Man a file
If the file is in the right directory layout, you can use MANPATH or the -M option to point to the man tree.
>TTr: nroff -man ./mymanfile.1 | col -b |more
That's:
nroff -man mymanfile.1 | col -x | more -s
If you have tables, there are more programs in the pipe, tbl & neqn.
>TTr: If you have a lot of add-on man pages you can add their location to the $MANPATH
To do this, they have to be in a specific directory tree:
manN.Z/ compressed nroff format
manN/ uncompress nroff
catN.Z/ compressed cat format
catN/ uncompressed cat
>MK: the nroff command must be used instead.
-M is about the closest.