Linux 常用命令3-- 目录操作rmdir 和 rm
来源:互联网 发布:现代诗歌 知乎 编辑:程序博客网 时间:2024/04/30 07:59
rmdir 删除文件或目录 全称: Remove Directory
使用方式 : rmdir [-p] 目录名称
参数:
-p:递归的删除目录(目录必须为空)
[root@localhost mail]# rmdir --helpUsage: rmdir [OPTION]... DIRECTORY...Remove the DIRECTORY(ies), if they are empty. --ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty -p, --parents remove DIRECTORY and its ancestors; e.g., `rmdir -p a/b/c' is similar to `rmdir a/b/c a/b a' -v, --verbose output a diagnostic for every directory processed --help display this help and exit --version output version information and exit
rm 删除文件或目录 全称: Remove
使用方式 : rm [-pr] 目录名称
参数:
-f:忽略不存在的文件,不出先警告信息
-i:互动模式,在删除前询问是否操作
-r:递归删除,常用在目录删除,相当危险
[root@localhost mail]# rm --helpUsage: rm [OPTION]... FILE...Remove (unlink) the FILE(s). -f, --force ignore nonexistent files, never prompt -i prompt before every removal -I prompt once before removing more than three files, or when removing recursively. Less intrusive than -i, while still giving protection against most mistakes --interactive[=WHEN] prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompt always --one-file-system when removing a hierarchy recursively, skip any directory that is on a file system different from that of the corresponding command line argument --no-preserve-root do not treat `/' specially --preserve-root do not remove `/' (default) -r, -R, --recursive remove directories and their contents recursively -v, --verbose explain what is being done --help display this help and exit --version output version information and exitBy default, rm does not remove directories. Use the --recursive (-r or -R)option to remove each listed directory, too, along with all of its contents.To remove a file whose name starts with a `-', for example `-foo',use one of these commands: rm -- -foo rm ./-fooNote that if you use rm to remove a file, it is usually possible to recoverthe contents of that file. If you want more assurance that the contents aretruly unrecoverable, consider using shred.
0 0
- Linux 常用命令3-- 目录操作rmdir 和 rm
- linux常用命令-rm和rmdir
- linux 文件和目录管理-rmdir&rm
- rm和rmdir 删除目录
- rm和rmdir 删除目录
- rm和rmdir 删除目录
- Linux中rmdir和rm
- Linux常用命令之mkdir rmdir touch rm
- linux rmdir和rm的区别
- Linux的相对和绝对路径、cd命令、创建和删除目录mkdir/rmdir和rm命令
- linux常用命令mkdir,cd,pwd,rmdir,cp,mv,rm,
- Linux指令--rm, rmdir
- 三、Linux常用命令之文件目录篇(ls、cd、pwd、mkdir、touch、cp、mv、rm、rmdir)
- linux下rm和rmdir的区别和使用
- linux下rm和rmdir的区别和使用
- linux目录操作和常用命令
- Linux学习笔记——rmdir命令和rm命令
- Linux命令基础7-rmdir和rm命令
- 收集的48个Shell脚本小技巧
- iOS中 本地通知/本地通知详解 韩俊强的博客
- Java泛型实例
- List转树形数据,供tree使用
- Android 系统稳定性 - ANR(一)
- Linux 常用命令3-- 目录操作rmdir 和 rm
- MyBatis入门1--初识Mybatis
- java程序的运行过程
- ffmpeg 学习资料
- JVM系列1:java内存区域分配
- 镜像反转二进制表达式,并输出十进制值
- android的编译和运行过程深入分析
- Cache缓存
- HTML5/CSS3学习笔记