博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
rmdir命令
阅读量:2506 次
发布时间:2019-05-11

本文共 895 字,大约阅读时间需要 2 分钟。

Just as you can create a folder using mkdir, you can delete a folder using rmdir:

就像可以使用mkdir创建文件夹一样,也可以使用rmdir删除文件夹:

mkdir fruitsrmdir fruits

You can also delete multiple folders at once:

您也可以一次删除多个文件夹:

mkdir fruits carsrmdir fruits cars

The folder you delete must be empty.

您删除的文件夹必须为空。

To delete folders with files in them, we’ll use the more generic rm command which deletes files and folders, using the -rf options:

要删除其中包含文件的文件夹,我们将使用更通用的rm命令,该命令使用-rf选项删除文件和文件夹:

rm -rf fruits cars

Be careful as this command does not ask for confirmation and it will immediately remove anything you ask it to remove.

请小心,因为此命令不会要求您确认,它会立即删除您要求删除的所有内容。

There is no bin when removing files from the command line, and recovering lost files can be hard.

从命令行删除文件时没有bin ,恢复丢失的文件可能很困难。

This command works on Linux, macOS, WSL, and anywhere you have a UNIX environment

此命令可在Linux,macOS,WSL以及您拥有UNIX环境的任何地方使用

翻译自:

转载地址:http://xtmgb.baihongyu.com/

你可能感兴趣的文章
TZC Intercommunication System
查看>>
HDU 4571 SPFA+DP
查看>>
centos 创建以日期为名的文件夹
查看>>
Java Timer触发定时器
查看>>
Page Object设计模式
查看>>
程序的基础知识
查看>>
在VIM中使用GDB调试 – 使用vimgdb
查看>>
python爬虫---从零开始(五)pyQuery库
查看>>
POJ2236(KB5-A)
查看>>
Centos MySQL数据库迁移详细步骤
查看>>
2初出茅庐--初级篇2.1
查看>>
新建 WinCE7.0 下的 Silverlight 工程
查看>>
腾讯的张小龙是一个怎样的人?
查看>>
jxl写入excel实现数据导出功能
查看>>
linux文件目录类命令|--cp指令
查看>>
.net MVC 404错误解决方法
查看>>
linux系统目录结构
查看>>
git
查看>>
btn按钮之间事件相互调用
查看>>
Entity Framework 4.3.1 级联删除
查看>>