Steven wrote:
> For example, I have /usr/bin/ls and /usr/gnu/bin/ls. How can I tell which one 
> "man page ls" gives me information for?

% man -M /usr/share/man ls
Reformatting page.  Please Wait... done



User Commands                                               ls(1)



NAME
     ls - list contents of directory

SYNOPSIS
     /usr/bin/ls [-aabccdeeffghhikllmnopqrrsstuuwv...@]

[...]

Note the path shown in the synopsis (for many, but unfortunately not all,
Sun created man pages).

On the other side:


% man -M /usr/gnu/share/man ls

[...]
AUTHOR
     Written by Richard M. Stallman and David MacKenzie.

REPORTING BUGS
     Report ls bugs to bug-coreutils at gnu.org
     GNU             coreutils             home             page:
     <http://www.gnu.org/software/coreutils/>
     General        help        using        GNU        software:
     <http://www.gnu.org/gethelp/>

COPYRIGHT
     Copyright O 2009 Free  Software  Foundation,  Inc.   License
     GPLv3+:      GNU      GPL     version     3     or     later
     <http://gnu.org/licenses/gpl.html>.
     This is free software: you are free to change and  redistri-
     bute  it.   There is NO WARRANTY, to the extent permitted by
     law.

[...]
     __________________________________________
    |   ATTRIBUTE TYPE   |   ATTRIBUTE VALUE  |
    |____________________|____________________|
    | Availability       |  SUNWgnu-coreutils |
    |____________________|____________________|
    | Interface Stability|  Uncommitted       |
    |____________________|____________________|

NOTES
     Source    for    GNU    coreutils    is     available     on
     http://opensolaris.org.




-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering

Reply via email to