Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make cygwin home directory to Windows' User Profile

Tags:

As I am developing Ruby on Rails on a Windows machine, I need to use cygwin to emulate the Unix command prompt. The problem now is that every time when I open the cygwin terminal, I am brought to this directory C:/cygwin/home/my_user_name instead of the Windows' default user directory C:/Users/my_user_name.

Does anyone know how to make cygwin's default home directory to Windows default C:/Users/my_user_name directory?

I have skimmed through the various solutions provide in Stack Overflow, but none of them works for me, the "mkpasswd" doesn't work either. Does this have something to do with my operating system's version, or maybe something else?

I am using cygwin 1.7.5 and my operating system is Windows 7 Business 64 bit.

like image 497
lixiang Avatar asked Apr 10 '12 10:04

lixiang


People also ask

Where is the Cygwin home directory in Windows?

Using Cygwin The installation directory (by default, c:\cygwin) is the root of the Unix-like file system, which contains bin, etc, home, tmp, and usr directories as would be found on a GNU/Linux or other Unix system.

How do I get to my home directory in Cygwin?

In a new installation of Cygwin, your home directory will be in C:/cygwin/home/<user>/ , and can be accessed by the usual ~ shortcut. Although this works just fine, it's often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/<user> .


1 Answers

mount -f "$USERPROFILE" ~ mount -m > /etc/fstab 

Related

Safely change home directory

like image 126
7 revs, 2 users 98% Avatar answered Sep 22 '22 02:09

7 revs, 2 users 98%