linux命令rm介绍(10)

rm命令主要用于文件或者文件夹的删除
参数:

-f, --force:忽略提示
-i:删除时,要求确认
-r, -R, --recursive:递归删除 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/rm-command-description/

其他参数:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/rm-command-description/

--interactive[=WHEN]
note:prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompt always文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/rm-command-description/

--one-file-system
note:when removing a hierarchy recursively, skip any directory that is on a file system different from that of the corresponding command line argument文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/rm-command-description/

--no-preserve-root
note:do not treat ‘/’ specially文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/rm-command-description/

--preserve-root
note:do not remove ‘/’ (default) 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/rm-command-description/

案例:

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/rm-command-description/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/rm-command-description/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onJanuary 3, 2018
  • 原文链接:https://note.t4x.org/rebuilding/rm-command-description/
匿名

Comment

Anonymous

Slide puzzle verification.