how to access the local machine using WSL 1

how to access the local machine using WSL

You can access your local machine using Windows Linux subsystem by accessing mnt folder in the root directory of the bash.
Just type, cd / 
-- this will get you to the root folder.
Then type, cd mnt
-- this will get you inside the mnt directory
Then type, ls -ltr
-- this will list down the drives in your local computer. From here yo can access anything you want on your local computer.

Here is what the above code is Doing:
1. It is creating a new directory called “test” in the root directory of the bash.
2. It is creating a new file called “test.txt” inside the “test” directory.
3. It is writing the text “Hello World” inside the “test.txt” file.
4. It is printing the contents of the “test.txt” file.

Similar Posts