Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a novice at cygwin/linux administration so please be patient with my ignorance:

I'm trying to change my .bashrc profile and setup (.gitconfig ) I can't seem to find my home folder.

My hypothesis is that i don't have my home folder because i've remapped my dos $HOME path. Could this be the trick?

Anyways how would one rebuild the home folder ? Uninstall and reinstall cygwin? (i'd like to avoid this if possible).

Thanks a plethora in advance,


share|improve this question
up vote 2 down vote accepted

If you open up a cygwin shell instead of a cmd shell you should start out in your home directory. cygpath and pwd should be able to help you figure out where you are.

share|improve this answer

Yes, if $HOME is set when Cygwin is invoked, Cygwin will use that as your home directory. Otherwise it reads the location of your home directory from /etc/passwd.

share|improve this answer
Could i change the .bat file of the cygwin to avoid this? if so how would i do it? – chrisjlee Sep 9 '10 at 12:42
Yes, add set HOME= to cygwin.bat to unset that variable. – ak2 Sep 19 '10 at 10:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.