
我目前正在使用Linux 的 Windows 子系統為了運行我的 Linux 程序,在配置我的主目錄時,我決定連結其中的 Windows 文件資料夾以輕鬆存取我的資料。
然而,每當我在該符號連結內建立目錄時,新目錄都會指向我剛剛建立無限循環的目錄。例子:
user@host:~$ ln -s /mnt/c/Users/John/Documents/ /home/Paradoxis/Documents
user@host:~$ cd Documents
user@host:~/Documents$ ls -la
total 12
drwxrwxrwx 2 root root 0 Feb 1 15:17 .
drwxrwxrwx 2 root root 0 Feb 1 14:36 ..
-rwxrwxrwx 1 root root 402 Dec 15 13:42 desktop.ini
user@host:~/Documents$ mkdir Hello
user@host:~/Documents$ ls -la
total 12
drwxrwxrwx 2 root root 0 Feb 1 15:22 .
drwxrwxrwx 2 root root 0 Feb 1 14:36 ..
drwxrwxrwx 2 root root 0 Feb 1 15:22 Hello
-rwxrwxrwx 1 root root 402 Dec 15 13:42 desktop.ini
user@host:~/Documents$ cd Hello
user@host:~/Documents/Hello$ ls -la
total 12
drwxrwxrwx 2 root root 0 Feb 1 15:22 .
drwxrwxrwx 2 root root 0 Feb 1 14:36 ..
drwxrwxrwx 2 root root 0 Feb 1 15:22 Hello
-rwxrwxrwx 1 root root 402 Dec 15 13:42 desktop.ini
user@host:~/Documents/Hello$ cd Hello/
user@host:~/Documents/Hello/Hello$ ls -la
total 12
drwxrwxrwx 2 root root 0 Feb 1 15:22 .
drwxrwxrwx 2 root root 0 Feb 1 14:36 ..
drwxrwxrwx 2 root root 0 Feb 1 15:22 Hello
-rwxrwxrwx 1 root root 402 Dec 15 13:42 desktop.ini
user@host:~/Documents/Hello/Hello$ # Goes on forever
有什麼辦法可以解決這個問題嗎?謝謝