I can't seem to access my normal Windows filesystem on the Ubuntu command line in Windows, any tips? Not even sure if this is supported yet.

  • I'm fairly certain that the environment is sandboxed, meaning it can't see any files outside the Ubuntu-related files; but I could be wrong. – TheWanderer Apr 8 '16 at 0:52
  • I read somewhere that it was sandboxed, but you could access your filesystem with the bash line – user167701 Apr 8 '16 at 1:09
  • I honestly don't know much about it. I suppose you could see if a /mnt/ folder exists and if anything exists under that. – TheWanderer Apr 8 '16 at 1:17
  • Yes, Cygwin uses /cygdrive/C, so I would expect this Ubuntu on Windows to mount the C drive as /mnt/C or something like that. – Jose Gómez Apr 8 '16 at 1:37

The windows file systems are located in /mnt/<Drive letter> by default. Keep in mind that there are caveats with file permissions given they aren't supported on ntfs.

  • To be accurate, NTFS supports ACL based file permissions, which are richer than Linux' DACs. WSL exposes files/folders in the Windows filesystem with the user's effective permission set, but may revert to 777 in some cases where mapping between DAC & ACL looks to be permissive. – Rich Turner Sep 7 '17 at 19:59

You must enter the following:

cd /mnt/c/dev

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.