Linux command Line reports bash:...: command not found Solution

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.