I have a question about the location of the file man, because some people told me it is in /usr/share/man, while other people told me: it's in usr/share/doc. Where is it?
man is a command used for displaying manuals. You very seldom have to care where the actual manuals are stored.
To get the manual for, e.g., the
$ man ls
To get the manual for the
man command itself:
$ man man
If you have manuals stored in a non-standard location, for example
$ env MANPATH="$HOME/local/share/man" man somecommand
MANPATH is set up using
/etc/manpath.config on many Linux systems, and may be viewed with the
/usr/share/doc may contain documentation which is not in
man format. This may be README files, copyright information, and other bits of info not necessarily directly related to how to use a piece of software.