When can a wildcard character be used to change a directory with the ASMCMD CD command?

When can a wildcard character be used to change a directory with the ASMCMD CD command?

When can a wildcard character be used to change a directory with the ASMCMD CD command?

A.
Always

B.
If the wildcard character causes a match to a single directory

C.
If the wildcard character causes a match to multiple directories

D.
Never

Explanation:
* If a wildcard pattern matches only one directory when using wildcard characters
with cd, then cd changes the directory to that destination. If the wildcard pattern matches multiple
directories, then ASMCMD does not change the directory but instead returns an error.
* The wildcard characters * and % match zero or more characters anywhere within an absolute or
relative path, which saves typing of the full directory or file name. The two wildcard characters
behave identically. There are various ASMCMD commands that accept wildcards. These include
cd, du, find, ls, lsattr, lsdg, lsdsk, lsgrp, lsusr, and rm.
Note: ASMCMD is a command-line utility that you can use to manage Oracle ASM instances, disk
groups, file access control for disk groups, files and directories within disk groups, templates for
disk groups, and volumes.
You can run the ASMCMD utility in either interactive or noninteractive mode.

Reference: About ASMCMD, Wildcard Characters



Leave a Reply 0

Your email address will not be published. Required fields are marked *