linux命令rm介绍(10)

  • A+
所属分类:Rebuilding

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

-f, --force:忽略提示
-i:删除时,要求确认
-r, -R, --recursive:递归删除

其他参数:

--interactive[=WHEN]
note:prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompt always

--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

--no-preserve-root
note:do not treat ‘/’ specially

--preserve-root
note:do not remove ‘/’ (default)

案例:

发表评论

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