Linux Command Line reports bash :.....: command not found solution: run the command on the Linux command Line and report "bash :....: command not found "This is because of the system PATH setting problem. If the PATH is not set correctly, the system cannot find the exact command. 1. In the command line, enter: export PATH =/usr/bin:/usr/sbin:/bin:/sbin: /usr/X11R6/bin ensures that the command line command can be used temporarily. Do not close the terminal after the command is executed. 2. Enter vi/etc/profile. d/java. sh in the command line to check whether the PATH attribute is set. In the Vi Editor, enter www.2cto.com export PATH =/usr/bin:/usr/sbin:/bin:/sbin: /usr/X11R6/bin in my Linux system, the command not found error is caused by setting the PATH attribute when setting the JAVA environment variable. Therefore, the PATH attribute of my local machine is set as follows: export PATH = $ JAVA_HOME/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin 3. Close the terminal and restart the terminal, run the command, OK, all are normal! Author huhao1989