Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 在cygwin终端中找不到我的主目录中的文件_Windows_Bash_Cygwin_Mintty - Fatal编程技术网

Windows 在cygwin终端中找不到我的主目录中的文件

Windows 在cygwin终端中找不到我的主目录中的文件,windows,bash,cygwin,mintty,Windows,Bash,Cygwin,Mintty,我正在尝试设置cygwin,但它无法开箱即用。 现在我无法使用主目录中的文件: $ pwd /cygdrive/c/Users/jb/test $ ls t $ ls t t $ ls ~/test/t ls: File or directory "/cygdrive/c/Users/jb/test/t" is not found $ ls /cygdrive/c/Users/jb/test/t ls: File or directory "/cygdrive/c/Users/jb/test/

我正在尝试设置cygwin,但它无法开箱即用。 现在我无法使用主目录中的文件:

$ pwd
/cygdrive/c/Users/jb/test
$ ls
t
$ ls t 
t
$ ls ~/test/t
ls: File or directory "/cygdrive/c/Users/jb/test/t" is not found
$ ls /cygdrive/c/Users/jb/test/t
ls: File or directory "/cygdrive/c/Users/jb/test/t" is not found

你知道怎么了吗?为什么即使我在我的主目录中也找不到它?

你有没有可能把它删除了?试一试

cd ..
cd test
看看它是否有效

您当前的shell可以看到它所在的目录,但无法从外部看到它


当然,这是一个猜测,但是请尝试一下。

ls t给出t,因此您可能必须转到t/t/但是pwd声明所提到的路径应该存在……Bash没有使用-login运行。现在它工作得很好,很有趣。如果您提供完整的路径,为什么它实际上很重要?