將檔案從 Windows 複製到 Cygwin 有害嗎?

將檔案從 Windows 複製到 Cygwin 有害嗎?
  1. 如果我將一些檔案從 Windows 複製到/homeCygwin 的資料夾中,是否會損壞 Cygwin 檔案系統?
  2. 如果其中一些檔案是可執行的並且我在 Cygwin/home資料夾中執行它們怎麼樣?
  3. chmod我應該在執行可執行檔之前更改存取模式嗎?

答案1

如果將文件複製到/home.但您可能更願意讓 Cygwin 將您放入其中/home/{yourusername},然後建立指向您的 Windows 的 、 等的符號Documents連結Pictures

ln -s /cygdrive/C/Users/yourusername/Documents
ln -s /cygdrive/C/Users/yourusername/Pictures
#...etc...

我應該指出,Cygwin 與 WSL 不同,後者存在(或已經)針對將任何內容從 Windows 環境複製到 Linux 子系統環境的嚴重警告。 Cywin 不是 WSL,因此不受此檔案複製限制的影響。

相關內容