📌  相关文章
📜  如何从 linux 终端中删除文件夹 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:56.959000             🧑  作者: Mango

代码示例1
To remove an empty directory, use the rmdir command as follows:
$ rmdir foldername

If the directory still contains files or subdirectories, the rmdir command does not remove the directory.
To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r.

$ rm -r foldername