0

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.

WKPlus
  • 6,955
  • 2
  • 35
  • 53

1 Answers1

2

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
rojomoke
  • 3,765
  • 2
  • 21
  • 30