Mar
04

Introduction – some one ask me about man pages specially development related man pages, which was not installed on Ubuntu by default. System call and function related man pages are very useful to the programmers. So this article will help you to do this in two steps….

1] Search man pages –

root@arunbagul:~# apt-cache search dev man pages

* This command will display most of the packages related to man pages…

2] Install development man pages –

root@arunbagul:~# apt-get install manpages-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
…..
……
Get:1 http://in.archive.ubuntu.com gutsy/main manpages-dev 2.62-1 [1252kB]
Fetched 1252kB in 9s (137kB/s)
Selecting previously deselected package manpages-dev.
(Reading database … 113515 files and directories currently installed.)
Unpacking manpages-dev (from …/manpages-dev_2.62-1_all.deb) …
Setting up manpages-dev (2.62-1) …
root@arunbagul:~#

3] How to read man pages…

root@arunbagul:~# man 3 <func_name>
root@arunbagul:~# man 3 putc
root@arunbagul:~# man 3 system
root@arunbagul:~# man 3 exec
root@arunbagul:~#

4] Short notes on manual pages –

Types of Manual pages –

1   Executable programs or shell commands
2   System calls (functions provided by the kernel)
3   Library calls (functions within program libraries)
4   Special files (usually found in /dev)
5   File formats and conventions eg /etc/passwd
6   Games
7   Miscellaneous  (including  macro  packages and conven‐
tions), e.g. man(7), groff(7)
8   System administration commands (usually only for root)
9   Kernel routines [Non standard]
Thank  you,
Arun

Similar Posts:

Be Sociable, Share!
(0) Comments    Read More   
Post a Comment
Name:
Email:
Website:
Comments:


www.flickr.com
arunbagul's photos More of arunbagul's photos
Get Adobe Flash player
-->