Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to convert Unix and Windows paths in Cygwin

📅 2018-May-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cygwin, path ⬩ 📚 Archive

Cygwin uses Unix paths. It can be sometimes confusing to figure out where in the Windows filesystem a Cygwin path is actually referring to. This is precisely why Cygwin ships with the cygpath tool.

$ cygwin -w /some/unix/path
$ cygwin -d /some/unix/path
$ cygwin -u "C:\Windows"

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧