© Hayden Barnes 2021
H. BarnesPro Windows Subsystem for Linux (WSL)https://doi.org/10.1007/978-1-4842-6873-5_9

9. Maximizing Windows Interoperability

Hayden Barnes1  
(1)
Columbus, GA, USA
 

When working with WSL, you may find you need to use utilities or files from Windows in your workflow or vice versa. Thankfully, there are several ways that you can blur the barrier between your WSL distro and Windows allowing a much more productive environment than Windows, or a Linux Distro, would provide on their own.

wslpath

wslpath is a tool built into WSL that allows for simple conversion of paths between WSL and their Windows equivalents and vice versa (Figure 9-1):
wslpath C:\\Users\\Hayden returns /mnt/c/Users/Hayden
wslpath -w /mnt/c/Users/Hayden returns C:\Users\Hayden ...

Get Pro Windows Subsystem for Linux (WSL): Powerful Tools and Practices for Cross-Platform Development and Collaboration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.