Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: HP FTAM/9000 User's Guide > Chapter 3 Using Command-Line FTAM

Moving Files with fmv

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

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 [4]) 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”

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.

Example:

In this example, a user known as betty uses fmv to move the local file localplan to her home directory on a remote HP-UX host called chicago:

$ fmv localplan chicago:localplan
Password (chicago:betty):
$

Note that you are prompted for betty's password at chicago. Creating a .ftamrc file may allow you to bypass this prompt.

In fmv file transfers, you must explicitly specify both the source and destination file names . Directory names and wildcards are not allowed for either source or destination.



[4] See Chapter 4 “Special FTAM Files” for information about shadow files.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.