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 ls
command:
$ 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 $HOME/local/share/man
:
$ env MANPATH="$HOME/local/share/man" man somecommand
The default MANPATH
is set up using /etc/manpath.config
on many Linux systems, and may be viewed with the manpath
command.
The directory /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.
-
-
@elisur Route? You mean path? Have a look in
/etc/manpath.config
. Also try themanpath
command. – Kusalananda♦ Feb 5 '17 at 12:57
/etc/manpath.config
. These usually are subdirectories of/usr/share/man
,/usr/local/share/man
etc., but also could be in/usr/share/doc
, though this is not standard./usr/share/doc
usually contains other srots of documentations. – ridgy Feb 5 '17 at 12:51locate
command. It may be necessary to download the package and runupdatedb
before it works. – SauceCode Feb 5 '17 at 13:07