1829753 Members
2611 Online
109992 Solutions
New Discussion

Getting help in man Page

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

Getting help in man Page

Hi.,

Anybody Tell me how to get the help from the MAN
command.

$ man < command name >
---------
-------
---------

Apart from this is their any swith with man command for simply finding the syntax of the command line.

And tell me what is man(1).,man(2).,man(3)
And its Syntax .....

7 REPLIES 7
Martin Hejtmanek
New Member

Re: Getting help in man Page

Hi,

Try to check $man man

in manual page for man you find answer for all your questions about man.

Regards

Martin
inventsekar_1
Respected Contributor
Solution

Re: Getting help in man Page

Susee sundar,

refer this page: [#man man]
http://docs.hp.com/en/B2355-60127/man.1.html


[most of the vi commands will work inside a man page with simple changes. or simply thing like more command.]

and read the man page for the command "more"
#man more
http://docs.hp.com/en/B2355-60127/more.1.html
most of the options u can use inside a man page.

for example:
to search for a string "SEE ALSO"
u need to do /SEE ALSO
Be Tomorrow, Today.
Arunvijai_4
Honored Contributor

Re: Getting help in man Page

Hi Susee,

You can easily do it by,

First install/create 'whatis' library by # catman -m
once it is done, search by # man -k

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
susee_sundar
Regular Advisor

Re: Getting help in man Page

Hi.,

Tell me what is the different between.

Man(1)
Man(2)
Man(5)

How can we look for the following man pages:-

#man(1) cat
#man(2) cat
#man(5) cat


By default Whcich one man command will look for..


.................
inventsekar_1
Respected Contributor

Re: Getting help in man Page

HI Susee Sundar,
/* tell me what is man(1).,man(2).,man(3)
And its Syntax ..... */

http://docs.hp.com/en/B2355-60127/pr01.html

The manpages are divided into sections that also have introduction, or intro, manpages that describe the contents. These are:

intro(1) Part I, â Section 1: User Commandsâ

intro(1M) Part II, â Section 1M: System Administration Commandsâ

intro(2) Part III, â Section 2: System Callsâ

intro(3C) Part IV, â Section 3: Library Functionsâ

intro(4) Part V, â Section 4: File Formatsâ

intro(5) Part VI, â Section 5: Miscellaneous Topicsâ

intro(7) Part VII, â Section 7: Device (Special) Filesâ

intro(9) Part VIII, â Section 9: General Informationâ

to understand this, take this example:
======================================
#man -k passwd
man -k passwd
passwd_export ("1m") - Creates local password and group files
passwd_import ("1m") - Creates registry database entries based on information in UNIX group and password files
passwd_override ("5") - The registry database override file
dialups, d_passwd(4) - dialup security control
lckpwdf(), ulckpwdf()(3C) - control access to /etc/passwd file
nispasswd(1) - change NIS+ password information
passwd(1) - change login password and associated attributes
passwd(4) - password file, pwd.h
rpc.nispasswdd, nispasswdd(1M) - NIS+ password update daemon
yppasswd( )(3N) - update user password in Network Information Service
yppasswd(1) - change login password in Network Information System (NIS)
yppasswdd(1M) - daemon for modifying Network Information Service passwd database
======================================
note that:
passwd(1) - change login password and associated attributes
passwd(4) - password file, pwd.h

so to refer the man page for the command passwd---> man 1 passwd
to refer the passwd file /etc/passwd
----> man 4 passwd

if u give simply "man passwd" passwd(1) u will get by default.
Be Tomorrow, Today.
Peter Nikitka
Honored Contributor

Re: Getting help in man Page

Hi,

i have to correct Arun: creating the really valuable whatis database is done via

catman -w

See 'man catman' ;-)
NB:
- run with full MANPATH setup
- run as root

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Mark Ellzey
Valued Contributor

Re: Getting help in man Page

Lord help me for admitting this, but I still have the *printed* version of the man pages for HP-UX version 9.

Never open them, tho, but they look neat on the bookshelf!

ME