About how to find the default path when cygwinbash is enabled

Source: Internet
Author: User
When cygwinbash is enabled, the default path cannot be found. After bash is opened, the following error occurs: mkdir: cannotcreatedirectory 'cygdrivep & amp; 39;: Nosuchfileordirectory. then, the default path is automatically directed to tmp. solution: 1. check etcpa. the default path cannot be found when cygwin bash is opened. After bash is opened, the following error occurs: mkdir: cannot create directory '/cygdrive/p ': no such file or directory then automatically points the default path to the tmp solution: 1. check/etc/passwd to see if the user path is correct. 2. if 1 is correct, go to the user variable in the environment variable settings and find the HOME variable to check whether the path is correct. PS: cygwin will automatically find its user variable HOME as the default path based on the current windows user, so if the HOME user variable exists, it will not Find the path in passwd. In order to unify management among different users, I will delete the HOME user variable here and directly let cygwin read passwd to get the default path.
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.