# Check this environment variable with echo $PATH. This problem is usually a matter of the environment variable PATH being incorrect.
[root@localhost ~]# echo $PATH
# Use the whereis command to see, where this command is located.
[root@localhost ~]# 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.
[root@localhost ~]# 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).
[root@localhost ~]# vim /etc/profile
[root@localhost ~]# export PATH="/usr/local/webserver/mysql/bin:$PATH"
[root@localhost ~]# source /etc/profile
Similar Posts:
- When installing MySQL database on MAC, the system prompts MySQL: command not found
- When installing MySQL database on Mac OS, the system prompts MySQL: command not found
- ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
- [Solved] JPype Error: FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/lib/jvm’
- Mac ADB prompts command not found
- [Solved] Linux Oracle bash: “sqlplus / as sysdba”: command not found
- Linux: How to configurate Environment Variables
- [Solved] JSCH cannot run JAVA bash:java:Command not found.
- Ifconfig command not found for Linux Installation Errors [How to Solve]
- CentOS Error -bash:systemctl:command not found