Home > OS >  How can I access C folder in power shell?
How can I access C folder in power shell?

Time:10-25

I have very simple problem with approaching C drive in Ubuntu 20.04.3 on my personal computer.

I'm using command following:

cd \home\C: 

But I get error: bash: cd: homeC:: No such file or directory

Do you know which command should be used to do so?

CodePudding user response:

First check your mointing points, using the mount function. In case of a Windows subsystem for Linux you might have something like this:

C:\ on /mnt/c type drvfs (rw,noatime,uid=1000,gid=1000,case=off)
D:\ on /mnt/d type drvfs (rw,noatime,uid=1000,gid=1000,case=off)

The part on /mnt/c (can be different in your case, obviously, shows the actual Linux folder. Please keep in mind that Linux is case sensitive.

CodePudding user response:

From Windows subsystem for Linux, run:

$ sudo mkdir /mnt/c
$ sudo mount -t drvfs C: /mnt/c
$ cd /mnt/c/
  • Related