Workarounds for modifying environment variables in CentOS, resulting in command loss

Source: Internet
Author: User

I beginner Linux, when installing the JDK, modify environment variables resulting in a large number of command loss?

In fact, the command is still in the system, but due to the environment variable error, resulting in the modification of the command can not be found in the previous way, so the above problem occurs.

At this point we can invoke the command through the absolute path and change the environment variable back.

/bin/vi This is the absolute path of the VI editor

After that the problem can be solved by oneself.

Workarounds for modifying environment variables in CentOS, resulting in command loss

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.