BirdsHover

——路漫漫其修远兮,吾将上下而爬楼梯!

  BlogJava :: 首页 ::  :: 联系 :: 聚合  :: 管理 ::
  21 随笔 :: 8 文章 :: 34 评论 :: 0 Trackbacks
用法:rm [选项]... 文件...
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     显示此帮助信息并退出
      --version  输出版本信息并退出

默认情况下,rm 不删除目录。使用 --recursive (-r 或 -R)选项可以删除每个列出的
目录及其下面的内容。

要删除第一个字符为“-”的文件 (例如“-foo”),请使用以下其中一种方法:
  rm -- -foo

  rm ./-foo

请注意,如果使用 rm 来删除文件,通常仍可以将该文件恢复原状。如果想保证
该文件的内容无法还原,请考虑使用 shred。

请向 <bug-coreutils@gnu.org> 报告错误。

posted on 2008-10-09 13:31 Birdshover 阅读(214) 评论(0)  编辑  收藏 所属分类: Lunix资料

只有注册用户登录后才能发表评论。


网站导航: