User`s guide

Chapter 3 XgOS File System Access and Logging 49
Note The copy schemes are used by the system upgrade command. See
“System Image Upgrades” on page 313.
Note For ease-of-use reasons, the file archive and file compress commands do not
use the auto-completion feature of the CLI. This allows you to work easily with files
that have similar names.
Example: Collect Debug Information and Use
Redirect
To collect debug data for Oracle customer support by using the redirect function (>):
file remove <filename> [-force]
[-query] [-recursive]
Deletes a file. The following parameters are supported:
-force—Removes a file immediately and without
prompting for confirmation.
-query—Removes a file but prompts for confirmation
before the file is actually deleted.
-recursive—Removes an entire file tree by descending
into directories.
file search Searches files for regular expressions. The following
parameters are supported:
<searchpattern>—Regular expression to search for.
-except—Finds everything except the regular
expression.
-ignorecase—Ignores case in search.
-linenumbers—Shows line numbers for matching lines.
-recursive—Searches sub-directories.
file show <filename> Displays the contents of a file. The following parameters are
supported:
-archive—Displays the contents of an archive (TAR or
TGZ) file.
-compressed—Displays the contents of a compressed
(GZIP) file.
Command Description