MV Command

HSI Version: 

All

Purpose: 

Moves files within the HPSS directory structure. 

Aliases: 

MOVE

Command Format: 

  {mv | move} [-f] [-i] [-v] path1 path2
or        
  {mv | move} [-f] [-i] [-v] path1 path2 ... dirpath

Options: 

-f : force option. Removes existing target if it already exists. Default is not to remove existing target(s)

-i : in interactive mode, pause for confirmation before removing existing target

Keywords: 

DIRn 

Usage Notes: 

For the first form:

  • if path2 exists and is not a directory, then the command fails (ie, cannot overwrite an existing node).
  • if path2 is a directory, then the second form is assumed, otherwise the command acts like "mv path1 path2".
  • if path1 is a directory, then path2 must also be a directory 

For the second form:

  • dirpath must be an existing directory node or the command fails.

all commands are issued as "mv pathname dirpath/pathname".


Note that cross-HPSS moves are not yet implemented. All paths must reference the same HPSS system

Example: 

mv *.c Source

Related Command(s): 

CP 

RENAME