Man does not work (too many arguments)

man

I get this an error when trying to run man on a Linux system:

$ LC_ALL=C man man

man: Too many arguments
Try 'man --help' or 'man --usage' for more information.

My man command doesn't seem to be an alias:

command -v man: /usr/bin/man 

What's going on?

Best Answer

Check the existence of MANOPT variable.

MANOPT
If $MANOPT is set, it will be parsed prior to man's command line and is expected to be in a similar format.

source

Example:

$ MANOPT='foo bar'
$ export MANOPT
$ man man
man: Too many arguments
Try 'man --help' or 'man --usage' for more information.
$

An obvious ad-hoc fix is to unset MANOPT. Then you should investigate where the variable came from.

Related Question