Solution to login failure after setting environment variable PATH in ubuntu

Source: Internet
Author: User
$ PATH: is not added when the environment variable PATH cannot be set after the environment variable PATH is set in ubuntu. in this case, the environment variable xxx/bin is set in other files, xxx/sbin is overwritten. when you log on to the system, there is no corresponding directory to correspond to your login account and password. Therefore, you can only duplicate it... ubuntu cannot log on after setting the environment variable PATH

$ PATH: is not added when environment variables are set. in this case, the environment variables xxx/bin and xxx/sbin set in other files are overwritten, when you log on to the system, there is no corresponding directory corresponding to your login account and password, so you can only log on again, but you cannot log on again.

Restart the computer and enter recovery mode. you can also press ctrl + alt + F1 or ctrl + alt + F2 to enter the system terminal, modify the environment variables set earlier, and restart the system again.



Author zxquiet

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.