linux的rm命令源码

admin 2017-07-13 0 次浏览


相关推荐: linux解压源码包命令  linux查找源码文件命令  linux如何查看内部命令cd源码? 

Linux下的rm命令是个删除文件命令那么它的源代码是怎样的呢?下面由小编为大家整理了linux下rm命令源码的相关知识,希望对大家有帮助!

linux的rm命令源码分析

1.原因

想要在删除文件前,先覆盖文件内容,防止他人恢复文件,从而得到文件原内容;并且需要支持rm命令原本的参数选项:

NAME rm - remove files or directoriesSYNOPSIS 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 intru- sive than -i, while still giving protection against most mistakes ......

请关闭浏览器的畅读模式或者取消屏蔽JavaScript的正常运行,避免出现内容显示不全或者段落错乱。

原网页地址:https://www.fzblnpko.com/xuexi/3630769.html