Anatch
Anatch

Reputation: 453

Command cd.. in Cygwin Terminal

I am using a Cygwin terminal and when I launch it, I can see that I am at:

/home/qi11091 (C:\cygwin64\home\qi11091)

But when I want to go to C:\ using the cd .. command I am stuck in C:\cygwin64, I can't go to C:\ .

Upvotes: 0

Views: 3601

Answers (2)

JordanChina
JordanChina

Reputation: 345

when you use cd in cygwin, it change your directory like Linux, instead of real path in Windows.

/home/qi11091 is your home path, and it is linked to C:\cygwin64\home\qi11091in Windows.

when you use cd .., it goes to /home, and it is linked to your C:\cygwin64\home in Windows.

then you use cd .. again, it goes to /, it is the root path of your system, and it is linked to your C:\cygwin64 in Windows.

If you want to go to C:\, use cd /cygdrive/c/.

Upvotes: 1

xlecoustillier
xlecoustillier

Reputation: 16351

The c: root is located at

/cygdrive/c/

As for the other drives

/cygdrive/d/
/cygdrive/e/
...

Upvotes: 2

Related Questions