Thecommandcouldnotbelocatedbecause '/usr/bin' isnotincluded solution

Source: Internet
Author: User
Thecommandcouldnotbelocatedbecause & amp; #39;/usr/bin & amp; #39; isnotincluded uses Ubuntu12.04. To set the adb command to an environment variable ~ The following command is added to The/. bashrc file: exportPATH/ho... The command cocould not be located because '/usr/bin' is not supported DED and Ubuntu12.04 is used. To set the adb command to an environment variable ~ /. The following command is added to the bashrc file: export PATH =/home/develop/android-sdks/platform-tools. do not input common commands such as ls, cd, and. Not even vi. All errors are reported. The command cocould not be located because '/usr/bin' is not supported Ded in the PATH environment variable. clear: command not found. the system tool command cannot be found because the PATH of the system PATH is forgotten for a long time. But how can I change the configuration file? after a long time, I found it very simple. Directly use the full path of the system tool to edit the configuration file. I am using sudo vi/usr/bin/vi ~ /. Bashrc. then add the command export PATH =/home/develop/android-sdks/platform-tools/: $ PATH. Restart the terminal. Two points learned: 1. when the system command cannot be found, the path is usually incorrect. you can directly use the full path on the command line. 2. when setting environment variables, especially in linux systems, you can add your own environment variables and attach the previous variables. Add $ PATH at the end.
Related Article

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.