Solution to Bash: XXX: Command not found in centos

Source: Internet
Author: User

Recently, I want to build an android project in centos. After JDK and Android SDK are configured, the environment variables of Java and Android are configured in/etc/profile, however, you cannot directly use the android update project command in windows.

The following situations occur:Bash: Android: Command not found

In this case, we can use the ln command to add android to the/usr/bin directory,The detailed solution is as follows::

1. Use CD/usr/bin to enter the Directory

2. Use the Ln-S-F Android SDK installation directory/tools/Android command to link android to this directory.

3. Complete. Now we can use the android command in any directory.


Therefore, you can use Bash: ant: Command not found to solve the problem.

Finally,The Linux ln command is attached.:Ln is another important command in Linux. Its function is to create a synchronization link for a file in another location.

Syntax:

1. link a file to a file ln [-f |-N] [-S] sourcefile [targetfile]

2. Link one or more files to a directoryLn [-f |-N] [-S] sourcefile... targetdirectory

Solution to Bash: XXX: Command not found in centos

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.