[下一页][首页][上一页]

我如何删除档案?

NAME
     rm - 移除目录记录
SYNOPSIS
     rm file ...
DESCRIPTION
     rm 工具试著移除命令列指定的非目录形态的档案。若档案许可不允许写入,
     则使用者会被提示确定。

     ...使用者可以需除他目录下的所有档案...

     若试著移除 ``.'' 与 ``..'' 档案时会出现错误。
范例:
$ ls
Notes           hello_world     mydir
dir             hello_world.c   notes
$ rm Notes
$ ls Notes
ls: Notes: No such file or directory
$ rm notes hello_world.c mydir
rm: mydir: is a directory
$ ls
dir             hello_world     mydir
$ touch Notes notes hello_world.c
$ _
[上一页][首页][下一页]