Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
User Commands (m - o) mv(1)
NOTES
If the source is on a different file system than the distination, mv must copy the source to the
destination’s file system and then delete the source. In this case, the user ID becomes that of the
current user, but the mode and times are not changed. The effect is equivalent to the following
command syntax:
rm -f destination && cp -pR source destination && rm -rf source
Because /G and /E both appear in your local root directory, you should be very careful when
using OSS shell commands on or from the root directory. OSS shell commands that perform
recursive actions make no distinction between Guardian and OSS files or between local and
remote files. You can use the -W NOG and -W NOE flags or the UTILSGE environment vari-
able to exclude objects in the Guardian file system or objects accessible through the Expand pro-
duct.
CAUTIONS
The mv command may overwrite existing files unless the -i flag is specified to prompt you first.
RELATED INFORMATION
Commands: chmod(1), cp(1), ln(1), rm(1), rmdir(1).|
Functions: rename(2).
Miscellaneous topics: acl(5).
STANDARDS CONFORMANCE
The -W NOG and -W NOE flags and the UTILSGE environment variable are HP extensions to
the XPG4 Version 2 specification.
527188-007 Hewlett-Packard Company 6−29