Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


mv command (moves files or directories)

Organization of this page

Format

mv [-f] [-i] source destination
mv [-f] [-i] source ... destination-directory

Description

This command moves files or directories. It can also be used to change the name of a file or directory.

Arguments

-f

Specifies that path overwriting is to be performed without requesting confirmation. This option is ignored if it is specified before the -i option.

-i

Specifies that confirmation is to be requested before overwriting is performed. Overwriting will be performed only if the reply y or Y is read from the standard input. This option is ignored if it is specified before the -f option.

source

Specifies the path name to be moved. Multiple path names can be specified.

destination

Specifies the destination path name. You can also change the name of a file or directory by specifying a path name for both source and destination.

destination-directory

Specifies the destination directory name. You can move more than one file or directory by specifying multiple path names in source.

Return codes

Return code

Meaning

0

Normal termination

1 or greater

Error termination

Notes

Usage examples