FTAM/9000 User's Guide

Chapter 3 51
Using Command-Line FTAM
Moving Files with fmv
Moving Files with fmv
The fmv command can move a remote file to the local host, or a local file
to a remote host. From your local host, you can also use fmv to move files
between two remote hosts, or move files locally. The fmv command can
also be used to rename a file, leaving it in its original place.
About fmv
With fmv, you can move an existing file (either local or remote) to a new
location (either local or remote). The file in the new location is an exact
copy of the original, and the original file (including any shadow file
1
) no
longer exists. When fmv completes a move operation, your local host
redisplays its prompt.
When you work with remote files, the working directory for fmv on the
remote host a default directory that depends on the remote FTAM
implementation. For HP-UX FTAM responders, it is your remote home
directory.
Using fmv
The syntax for the fmv command is as follows:
fmv
source_file
[-X | -z
source_access
]
dest_file
[-X | -z
dest_access
]
The source_file is the file to be moved, and dest_file is the destination to
which the file is to be moved. If you are familiar with the HP-UX mv
command, you will notice the similarity. However, for fmv, the source and
destination files can be either local or remote.
The options manage file protection. The -X option gives you exclusive
access to the file during the move. The -z option can be used to satisfy
more stringent file protection requirements. File protection is the subject
of Chapter 5, “FTAM File Protection.”
1. See Chapter 4, “Special FTAM Files,” for information about
shadow files.
NOTE Whether a file is local or remote depends on how you specify the file
name. See “Specifying File and Directory Names” earlier in this chapter.