Forrest logo
back to the man tool

man:tldr:7fc14

man: Display the path searched for manpages.
$ man --path
try on your machine

The command "man --path" is used to display the search path for manual pages in Linux or Unix systems.

When you use the "man" command to access the manual pages, it searches for and displays the specified manual page. However, before searching for the page, it looks in different directories to find the manual file. The "man --path" command helps you see the directories where these manual pages are located.

By executing "man --path", it will display a list of colon-separated directories where the "man" command searches for manual pages. This can be useful if you want to know where the manual pages are stored or if you want to add a new directory to the search path.

For example, if you run "man --path" and it displays "/usr/share/man:/usr/local/share/man:/usr/local/man", it means that the "man" command looks for manual pages in those three directories, in that order.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the man tool