Search code examples
linuxwindows-8cygwin

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.


Solution

  • 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