linux命令rm介绍(10)

    Read

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

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

其他参数:SourceByrd's Weblog-https://note.t4x.org/rebuilding/rm-command-description/

--interactive[=WHEN]
note:prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompt alwaysSourceByrd's Weblog-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 argumentSourceByrd's Weblog-https://note.t4x.org/rebuilding/rm-command-description/

--no-preserve-root
note:do not treat ‘/’ speciallySourceByrd's Weblog-https://note.t4x.org/rebuilding/rm-command-description/

--preserve-root
note:do not remove ‘/’ (default) SourceByrd's Weblog-https://note.t4x.org/rebuilding/rm-command-description/

案例:

SourceByrd's Weblog-https://note.t4x.org/rebuilding/rm-command-description/ SourceByrd's Weblog-https://note.t4x.org/rebuilding/rm-command-description/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on January 3, 2018
  • 原文链接:https://note.t4x.org/rebuilding/rm-command-description/
匿名

Comment

Anonymous

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: