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.
Solution 1:
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.