Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 msys 创建符号链接。现在我想删除它,但这是我得到的:
$ ln -s /mypath mylink $ rm mylink rm: cannot remove directory `mylink': Is a directory
在 msys 上删除符号链接的正确方法是什么?
MSys2 上的符号链接不是真正的符号链接,而是副本。所以你实际上可以使用rm:
rm
rm -r, -R, --recursive remove directories and their contents recursively
例子:
rm -r mylink