14,957
edits
No edit summary |
|||
| Line 10: | Line 10: | ||
$ cygpath -u 'c:\Users\User\Desktop\' | $ cygpath -u 'c:\Users\User\Desktop\' | ||
/cygdrive/c/Users/User/Desktop/ | /cygdrive/c/Users/User/Desktop/ | ||
enclose the whole path with single quote symbol if the path contains white space characters | enclose the whole path with single quote symbol if the path contains white space characters | ||
| Line 25: | Line 22: | ||
/cygdrive/c/Program Files | /cygdrive/c/Program Files | ||
</pre> | </pre> | ||
=== troubleshooting === | |||
<pre> | |||
enclose the whole path with single quote symbol if the path contains white space characters ex: cygpath -u 'c:\Program Files\' | |||
$ cygpath -u c:\Program Files\ | |||
met error, press ctrl+c to escape | |||
enclose with double quote symbol after cd command ex: cd "$(cygpath -u 'c:\Program Files\')" | |||
$ cd $(cygpath -u 'c:\Program Files\') | |||
-bash: cd: /cygdrive/c/Program: No such file or directory | |||
$ cd '$(cygpath -u 'c:\Program Files\')' | |||
-bash: syntax error near unexpected token `)' | |||
</pre> | |||
== convert linux path to windows path == | == convert linux path to windows path == | ||
<pre> | <pre> | ||