Saturday, January 22, 2022

WSL 2.0: Accessing Windows Files from a Windows System for Linux (WSL) Distribution

When WSL is installed and a distribution is installed on WSL, the distribution is associated with a file system separated from Windows NTFS file system of the host. Linux's view of file systems is as mount points which can be viewed using: ls -al /mnt | more 

Piping the output of ls to more strips the colors from the output which makes the output readable to certain categories of color-blind engineers (see Ubuntu (for the color blind developer): Removing colors from ls).

The 'c' drive under /mnt is the Windows file system corresponding to the C: drive. The contents of Windows C: can be viewed using ls -al /mnt/c | more as follows:




No comments :

Post a Comment