In my CentOS server, I have two commands: /bin/vi
and /usr/local/bin/vi
.
If /usr/local/bin/vi
presents before /bin/vi
in PATH
, man vi
will show the man page for /usr/local/bin/vi
.
How can I get man page for /bin/vi
then? I have tried man /bin/vi
, but it did not work.
Do you know where the man page for /bin/vi is kept? If so, set the environmental variable MANPATH to point to that directory, or add it at the beginning.
export MANPATH=/mymanpath:$MANPATH