man pages for commands and functions of same name?


 
Thread Tools Search this Thread
Top Forums Programming man pages for commands and functions of same name?
# 1  
Old 03-04-2012
man pages for commands and functions of same name?

Hi friends,
I hope everyone is fine and doing well. I am facing this irritating problem. As you know that manual pages are available for both unix commands and c functions. Now when I try to check the manual pages for functions like

Code:
 
read
write
exit

I get the manual pages for the commands with the same name. How to remedy this problem, what is the solution when we have the name of a command and function to be the same?

Looking forward to your wonderful replies.

Thanks in advance!

---------- Post updated at 04:12 AM ---------- Previous update was at 03:16 AM ----------

For those who are interested!!!

Just enter

Code:
man -a exit

you will see all the data for the exit, whether command or function
# 2  
Old 03-04-2012
Have you ever heard about manual sections? I suggest you read the man's own man page to check this.
# 3  
Old 03-04-2012
You also should become familar with the -k option to the man command, e.g.
Code:
man -k exit

# 4  
Old 03-05-2012
The structure of the "man" pages is described in man man .
man -a <title> is indeed really useful for finding all pages with the same title. The "-a" keyword is not valid on all versions of unix.

Some versions of unix have the apropos <keyword> command which is the same as man -k <keyword>.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

OSX 10.14 Mojave Commands - 13K+ Total Man Pages in Repository

Just added OSX 10.14 Mojave Commands (currently over 13K pages in the mojave repo) to our man page repository: OSX 10.14 Mojave Commands We need to update all the man pages to the most current versions, so please contribute man page sets to your favorite OS environment (tar.gz with os and... (3 Replies)
Discussion started by: Neo
3 Replies

2. Shell Programming and Scripting

Commands for man pages

what command should i use for displaying the manual pages for the socket, read and connect system calls? (1 Reply)
Discussion started by: Nabeel Nazir
1 Replies

3. Shell Programming and Scripting

Man pages for Pthreads

"how to see the man pages related to pthreads". while executing the command man pthread_t . im getting the following error!!!!! No manual entry for pthread. (3 Replies)
Discussion started by: Muthukumar U
3 Replies

4. HP-UX

Looking for some man pages.

Can anyone supply me with the man pages for: omnidatalist omnibarlist omnisap.exe I prefer the source man pages in nroff format. A clue about the software bundles which supply these man pages is fine as well. OS: HP-UX TIA (11 Replies)
Discussion started by: sb008
11 Replies

5. Solaris

MAN PAGES

Hi everyone, I have a small query, in solaris the man pages get displayed on half of the terminal , can i get a full terminal or full screen display ?:) (2 Replies)
Discussion started by: M.Choudhury
2 Replies

6. UNIX for Dummies Questions & Answers

man pages

When reading man pages, I notice that sometimes commands are follwed by a number enclosed in parenthesis. such as: mkdir calls the mkdir(2) system call. What exactly does this mean? (4 Replies)
Discussion started by: dangral
4 Replies

7. UNIX for Dummies Questions & Answers

man pages for while, for loops..

Hi, How can I see the man pages for while, for, if and other shell script control structures.. I can't say just "man while" at least on hp unix... Do I need to use any special option? Thank you! Vishnu. (2 Replies)
Discussion started by: Vishnu
2 Replies

8. UNIX for Dummies Questions & Answers

man pages

Hi folks, I want to know all the commands for which man pages are available. How do i get it? Cheers, Nisha (4 Replies)
Discussion started by: Nisha
4 Replies

9. UNIX for Dummies Questions & Answers

man pages

Hi, I've written now a man pages, but I don't knwo how to get 'man' to view them. Where have I to put this files, which directories are allowed?? THX Bensky (3 Replies)
Discussion started by: bensky
3 Replies

10. UNIX for Dummies Questions & Answers

Man pages

Hello , I just installed openssh in my system . I actually tried to man sshd but it says no entry , though there is a man directory in the installation which have the man pages for sshd . Can anyone tell me how should i install these man pages . DP (2 Replies)
Discussion started by: DPAI
2 Replies
Login or Register to Ask a Question