Linux use the man command error: Man: command not found [How to Solve]


# Check this environment variable with echo $PATH. This problem is usually a matter of the environment variable PATH being incorrect.
[[email protected] ~]# echo $PATH

# Use the whereis command to see, where this command is located.
[[email protected] ~]# whereis man

# Use that address directly, or add that path to PATH. There are two ways to add the PATH environment variable.
# Method 1: PATH disappears when the terminal is closed.
[[email protected] ~]# export PATH=/usr/local/webserver/mysql/bin:$PATH
# Method 2: Change PATH by editing /etc/profile, you can also change .bashrc in your home directory (i.e. ~/.bashrc).
[[email protected] ~]# vim /etc/profile
[[email protected] ~]# export PATH="/usr/local/webserver/mysql/bin:$PATH"
[[email protected] ~]# source /etc/profile


Similar Posts: