1

In Mac OS X, at the end of the chmod man page, it shows

See also: chmod(2)

But when I enter

man chmod(2)

It says that there is no such man page. How can I access the man page chmod(2) man page? Is there a command to do this, or us it only accessible through the internet?

4
  • unix.stackexchange.com/q/3586 Commented Apr 14, 2016 at 21:37
  • 1
    The accepted answer to the linked question does explain how to specify a section, just after the list of sections. Commented Apr 14, 2016 at 21:43
  • 1
    Yes, it does, if the appropriate manpage is installed. Commented Apr 14, 2016 at 21:46
  • man 2 chmod will show you the manual page for chmod from section 2 of the manual.
    – DopeGhoti
    Commented Apr 14, 2016 at 21:56

1 Answer 1

4

You specify the section first:

man 2 chmod

See man man for tons of information (although not so much in the Mac OS X version), including the meaning of the section numbers; 2 is for system calls, so the chmod(2) manpage describes the chmod system call provided by the kernel.

On Mac OS X the system call manpages are provided in Xcode Tools, which need to be installed for all this to work; see the documentation at the top of the on-line version of chmod(2).

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .