Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cygwin can't find my files

I just downloaded CYGWIN for Windows 8. I'm using it because my professor wants us to do everything through the command line and I'm used to the linux setup on the computers in our labs, as opposed to trying to figure out cmd commands that go with the linux. When I open CYGWIN and type "ls" nothing shows up. When I type "cd ../.." it takes me to what seems to be the file structure for CYGWIN and it won't let me go up anymore after that. I feel like this probably is just a setup error. Will someone please help me out.

like image 839
discodane Avatar asked Sep 20 '13 05:09

discodane


2 Answers

From cygwin, you can get to the C: disk as

cd /cygdrive/c/

Check here: for permanent solution.

As mentioned there: create a directory for each of your disks and mount them:

> cd /
> mkdir c
> mount c: /c
> mkdir d
> mount d: /d
> ...etc

Now you can directly go to the c: drive, for example:

> cd /c  
like image 102
kailash19 Avatar answered Nov 13 '22 20:11

kailash19


I just want to add some quick syntax for all UNIX programmer.

$ cd c:    "It will give U shortcut access to /cygdrive/c"
$ cd d:    "It will give U shortcut access to /cygdrive/c"
like image 36
MDW Avatar answered Nov 13 '22 20:11

MDW