![將檔案從 Windows 複製到 Cygwin 有害嗎?](https://rvso.com/image/1518688/%E5%B0%87%E6%AA%94%E6%A1%88%E5%BE%9E%20Windows%20%E8%A4%87%E8%A3%BD%E5%88%B0%20Cygwin%20%E6%9C%89%E5%AE%B3%E5%97%8E%EF%BC%9F.png)
- 如果我將一些檔案從 Windows 複製到
/home
Cygwin 的資料夾中,是否會損壞 Cygwin 檔案系統? - 如果其中一些檔案是可執行的並且我在 Cygwin
/home
資料夾中執行它們怎麼樣? 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,因此不受此檔案複製限制的影響。