Cygwin convert windows path to linux path: Difference between revisions

Jump to navigation Jump to search
Line 18: Line 18:
switch to the specified path
switch to the specified path
<pre>
<pre>
//method1
$ cd "$(cygpath -u 'c:\Program Files\')"
$ cd "$(cygpath -u 'c:\Program Files\')"
$ pwd
/cygdrive/c/Program Files
//method2
$ cygpath -u 'c:\Program Files\'
/cygdrive/c/Program Files/
copy the above path & paste to the console
$ cd /cygdrive/c/Program Files/
$ pwd
$ pwd
/cygdrive/c/Program Files
/cygdrive/c/Program Files

Navigation menu