Skip Headers
Oracle® Fusion Middleware User's Guide for Oracle JRockit Virtual Edition
11g Release 1 (11.1.1.3.1)

Part Number E15206-03
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

-f (--file)

The -f option enables you to perform the following tasks in the file system of a virtual machine image:

Caution:

Unless you are familiar with the file system of a virtual machine image, do not use the -f option for modifying the file system. For more information, see Section 2.4, "About the File System of a Virtual Machine."

Syntax

java -jar jrockitve-imagetool.jar -f vm_cfg operation [parameter]*

Note:

For information about the syntax conventions, see Documentation Conventions for Command-Line Syntax.

When specifying directory paths in the file system of a virtual machine, use slashes (/) as path delimiters. A slash (/) at the beginning of the path represents the root directory. A period (.) at the beginning of the path represents the current directory. Two periods (..) indicate the parent directory.

For directory paths in the local file system, use the appropriate delimiter: slash (/) on UNIX-like operating systems and backslash (\) on Windows.

Arguments

Argument Description
vm_cfg Path and name of the configuration file corresponding to the virtual machine file system that you want to view or modify
operation The file operation (see Table A-1) to be performed
parameter The parameters required for the specified file operation

The parameters that you can specify vary depending on the operation. Table A-1, lists the parameters for each operation.

Table A-1 Operations and Parameters of the -f Option

Operation and Parameters Purpose
get path_in_virtual_machine path_in_local_filesystem

Copy virtual machine files to the local file system.

rget path_in_virtual_machine path_in_local_filesystem

Copy virtual machine files recursively to the local file system.

put path_in_local_filesystem path_in_virtual_machine

Copy files from the local file system to the file system of a virtual machine image.

rput path_in_local_filesystem path_in_virtual_machine

Copy files recursively from the local file system to the file system of a virtual machine image.

ls [file_pattern]*

List files and directories.

rls [file_pattern]*

List files and directories recursively.

mv from_file_pattern to_file_pattern

Move or rename files.

mkdir directory_name+

Create a directory.

rm file_pattern+

Delete files.

rrm file_pattern+

Delete files recursively.

rmdir directory_pattern+

Delete directories.

cat file_pattern+

Display the contents of text files.

find pattern

Search for files matching the specified pattern.


Note:

When specifying local directory paths and file names that contain spaces or wildcards, enclose the parameter in double quotation marks.

For example, to copy all the .prop files from a local directory named "my app" to the root directory in the file system of the virtual machine, use double quotation marks as shown below:

java -jar jrockitve-imagetool.jar -f vm_cfg put "my app\*.prop" ./

Examples

In all of these examples, the virtual machine configuration file (vm.cfg) is assumed to reside in the app directory.

Related Topics

Modifying the File System Within a Virtual Machine Image by Using the Image Tool