- 使用rmdir命令删除空文件夹:rmdir /path/to/directory
rmdir /path/to/directory
- 使用rm命令删除非空文件夹:rm -r /path/to/directory
rm -r /path/to/directory