Bash linux (WSL) on windows 10 - terminal/console 当我在其中移动某些东西时不刷新 folder/file

Bash linux (WSL) on windows 10 - terminal/console not refreshing the folder/file when i move something in it

因此,正如我在标题中所说,我在 windows 上使用 bash linux,并且我正在使用 Cmder。

但是,当我在资源管理器上打开目录时,我 create/move/remove 一个文件或文件夹,或文件夹内的任何内容。 "ls" 控制台命令中没有列出新文件,我什至无法执行它。这是 return "No such file or directory".

我需要'logout'和re-bash刷新目录。

在文件夹(资源管理器)和 bash 中具有相同元素的唯一方法是通过 cmd(mv/touch/rm/etc..).create/remove/etc。

但有时当我需要从下载或其他内容中移动大量文件时,这有点繁琐。

有人知道如何为我自动刷新 bash 中的目录吗?

Before adding a new file

ls -la
total 0
drwxrwxrwx 1 sili sili 4096 Jun  1 18:38 .
drwxr-xr-x 1 sili sili 4096 Jun  1 18:38 ..
-rw-rw-rw- 1 sili sili    0 Jun  1 18:37 info.php
-rw-rw-rw- 1 sili sili    0 Jun  1 18:37 test.sql
-rw-rw-rw- 1 sili sili    0 Jun  1 18:37 text.txr

After creating new elements in the folder(explorer)

:~/SQL$ ls -la
total 0
drwxrwxrwx 1 sili sili 4096 Jun  1 18:38 .
drwxr-xr-x 1 sili sili 4096 Jun  1 18:38 ..
-rw-rw-rw- 1 sili sili    0 Jun  1 18:37 info.php
-rw-rw-rw- 1 sili sili    0 Jun  1 18:37 test.sql
-rw-rw-rw- 1 sili sili    0 Jun  1 18:37 text.txr

因此 bash 中没有任何更新。

如果在 WSL 上,来自 Windows 工具 的修改必须 在 Windows 文件系统中完成(/mnt/c/SharedWSLFiles/c:\SharedWSLFiles, 例如)。更重要的是,Windows 工具不应在 Linux FS 中使用。这没关系,因为 Ubuntu 可以与 Windows FS 一起使用。根据 MS,这是一条硬性规定:

https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/