摘要: rmdir [选项] [目录] 示例: rmdir /test 递归删除: rmdir -p /test/test1 删除的目录不为空时,抛出异常“Directory not empty” 阅读全文
posted @ 2023-02-23 15:05 留白* 阅读(27) 评论(0) 推荐(0) 编辑
摘要: touch [选项] [文件] 示例: touch test1.txt 创建多个文件 touch test1.txt test2.txt touch test{1..5}.txt touch /data/test{1..5}.txt 阅读全文
posted @ 2023-02-23 14:44 留白* 阅读(42) 评论(0) 推荐(0) 编辑
摘要: rm [参数] [文件/目录] 删除文件示例: rm test.txt 删除目录时需要携带参数-r,如果不希望确认提示时,可以使用-f强制删除,示例: rm -r -f test 阅读全文
posted @ 2023-02-23 14:32 留白* 阅读(79) 评论(0) 推荐(0) 编辑