- 最后登录
- 2013-10-16
- 在线时间
- 58 小时
- 威望
- 94
- 金钱
- 731
- 注册时间
- 2012-4-11
- 阅读权限
- 50
- 帖子
- 71
- 精华
- 1
- 积分
- 94
- UID
- 341
|
7#
发表于 2012-4-12 13:54:35
回复 6# 的帖子
11g 中 asmcmd rm 定义
help rm
rm
Deletes the specified Oracle ASM files and directories.
rm [-f|-r] name [name...]
The options for the rm command are described below.
-r - Recursively deletes files and subdirectories.
-f - Forces the deletion of files and subdirectories.
name - Name of the file, pattern, or directory you want to remove.
If name is a file or alias, then the rm command can delete the file
or alias only if it is not currently in use. If name is a directory,
then the rm command can delete it only if it is empty (unless the -r
flag is used) and it is not a system-generated directory. If name is
an alias, then the rm command deletes both the alias and the file to
which the alias refers. To delete only an alias and retain the file
that the alias references, use the rmalias command.
Note: When you delete all of the files in a system-created directory,
the directory is removed. If the parent directories are empty, all of
the parent directories are also removed.
name can contain wildcard characters. See "Wildcard Characters".
If you use a wildcard, the rm command deletes all of the matches
except nonempty directories, unless you use the -r flag. To
recursively delete, use the -r flag. With -r option you can delete
a nonempty directory, including all files and directories in it and
in the entire directory tree underneath it. If you use the -r flag
or a wildcard character, then the rm command prompts you to confirm
the deletion before proceeding, unless you specify the -f flag. If
a wildcard character matches an alias or a system-generated file that
has an alias, then both the alias and the system-generated file that
it references are deleted. When using the -r flag, either the
system-generated file or the alias must be present in the directory
in which you run the rm command.
For example, if you have a user alias, +data/dir1/file.alias
that points to +data/orcl/DATAFILE/System.256.146589651,
then running the rm -r +data/dir1 command removes the
+data/dir1/file.alias and +data/orcl/DATAFILE/System.256.146589651.
The following are examples of the rm command. The
first example deletes the myexamples.bak file. The second example
removes the subdir2 directory and its contents. |
|