I'm running Bash scripting, but sometimes I get confused which of these commands I use belong to who. Sometimes 'Man xxx' works, sometimes doesn't, so I use '--help' or 'info', mostly one of these ...
How can I find out in which configuration file the environment variable $MANPATH is set? Is there a way to backtrace the values? I am aware of that I can grep through the whole file system using find ...
I can do for example man cp | grep verbose to findout if cp man has word "verbose", how can I do something like (pseudo-code) man * | grep copy to find out what command to use for coping?