cd'ing to /

Carlo Florendo carlo@astra.ph
Thu Jan 30 13:13:00 GMT 2003



Virginia Mann wrote:

> I don't know whether this is a cygwin question or just a pure unix 
> question. I don't know as much as I should about either one yet.
>
> My "/" is mounted at C:\cygwin, which is sensible. The FAQ warns us 
> that making / point at C:\ is a bad idea.
>
> Unfortunately, when I type "cd" with no modifiers or "cd ~", it takes 
> me to /cygdrive/c, which is C:\. So, my home for some reason is the 
> root of the whole C: drive, which seems just as error prone to me as 
> if "/" were there.
>
> I've installed Cygwin on two machines, and the first one made / 
> (=C:\cygwin) my home directory. I don't know why this one gave me a 
> different home (I thought I just accepted the defaults in both 
> installations, but I may have been distracted and made a mistake), but 
> I'd like to change it.
>
> How do I change my home to the Cygwin root?
>
> Thanks.
>
>
Open your /etc/profile  and set HOME ="/home/$USER" or any other 
directory you want.

Regards,

Carlo


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list