cygwin无法找到我的文件

时间:2021-08-01 20:54:10

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.

我刚刚下载了适用于Windows 8的CYGWIN。我正在使用它,因为我的教授希望我们通过命令行完成所有工作,而我习惯于在我们实验室的计算机上进行linux设置,而不是试图找出cmd命令那跟linux一样。当我打开CYGWIN并输入“ls”时,没有任何显示。当我输入“cd ../ ..”时,我会看到CYGWIN的文件结构,它不会让我在那之后再上去。我觉得这可能只是一个设置错误。有人请帮助我。

2 个解决方案

#1


16  

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

从cygwin,您可以访问C:盘

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:

现在您可以直接转到c:驱动器,例如:

> cd /c  

#2


5  

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

我只想为所有UNIX程序员添加一些快速语法。

$ cd c:    "It will give U shortcut access to /cygdrive/c"
$ cd d:    "It will give U shortcut access to /cygdrive/c"

#1


16  

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

从cygwin,您可以访问C:盘

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:

现在您可以直接转到c:驱动器,例如:

> cd /c  

#2


5  

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

我只想为所有UNIX程序员添加一些快速语法。

$ cd c:    "It will give U shortcut access to /cygdrive/c"
$ cd d:    "It will give U shortcut access to /cygdrive/c"