unlink 不能用于删除文件夹,rm 可以删除文件和文件夹 当删除文件时,rm 和 unlink 是完全一样的。 转载于:https://www.cnblogs.com/god-of-death/p/8631059.html