Cygwin using 3-Modify the default boot path for Cygwin

Source: Internet
Author: User

When Cygwin was originally started, PWD displays:

C:\Documents and Settings\[email protected] ~
$ pwd
C:\Documents and Settings\Administrator

Enter env to see what environment variables are present in the system:

You can find home=c:\documents and Settings\Administrator

Therefore, to change the Cygwin default boot path is to change the home environment variable for the value you want to.

Right-click My Computer, properties--Advanced environment variable, in the environment variable box of your own personal user, or in the following system variable box, new, variable name set to home, variable value For the specific path you want.

If it is built at its own user variable, then the valid range of this variable value is the current user.

If built at the system variable, then the valid range of this variable value is the current entire system, that is, no matter which user logs on to the system, this variable is valid.

I set it here as

Home=c:\cygwin\home

This way, each time you start Cygwin, you will automatically be transferred to your home path.

Cygwin using 3-Modify the default boot path for Cygwin

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.