Bash on Ubuntu on Windows: ls command returns nothing at root level

On the new Bash on Ubuntu on Windows app on Windows 10, I tried to run ls from the starting directory to see the subdirectories but nothing comes up. I don't really know the directory structure so I'm not sure how to proceed next. What am I doing wrong here? I'm sure this is totally noob of me but I'm not sure what else to do.

1

2 Answers

it probably just means the folder is empty (or only contain hidden files). you can try ls -a (or ll) to see hidden files (including . and ..) and see that it works.

you can also try to create files and folders then rerun the command to see your created files and folders.

5

When you see your Linux command prompt, type:

cd /mnt/c/Users/username

Where c means C: drive and username is your Windows username. Then, when you type ls, you will see folders like Desktop, Documents, Downloads, etc.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like