Solve bash: xxx: command not found in centos

Source: Internet
Author: User

Solve bash: xxx: command not found in centos

If some environment variables are set in the/etc/profile file, the system command is always unavailable:

-Bash: xxx: command not found

That's proved right. You have a problem modifying the environment variable. Don't be flustered. Fortunately, the export command is available for you:

Export PATH =/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin

You can use common commands by using the above command, but it is only for this modification. Now, when will the profile file be modified?

Modify the error part of the profile file to the source/etc/profile file!

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.