Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

User Commands (m - o) mv(1)
2. The mv command reads one line from the standard input.
3. If the response is the first letter of the word yes in the language of the current locale, the
operation occurs. Otherwise, the operation does not occur, and the command proceeds to
the next source file, if any.
If a mv operation fails, mv generally writes a diagnostic message to standard error, does nothing
more with the current source file, and goes on to process any remaining source files.
If the copying or removal of a file is prematurely terminated by a signal or error, mv might leave
a partial copy of the file at either the source or the target pathname. The mv program will not
modify both the source and target pathnames simultaneously; therefore, program termination at
any point always leaves either the source file or the target file complete.
Access Control Lists (ACLs)
If optional ACL entries are associated with the new file (file2), the mv command displays a plus
sign (+) after the access mode when asking for permission to overwrite the file.
When a file or directory is renamed, all the ACL entries for the file or directory are retained.
This table describes the impact of ACLs on the permissions used when a new file or directory is
created by the mv command. Cases not included in the table represent impossible situations.
_______________________________________________________
mv Source Source Dest. Impact of
Command Fileset File/Dir Filesset ACLs on
Supports Supports Has Opt. Supports Permissions
ACLs ACLs ACLs ACLs of New File/Dir
_______________________________________________________
Y/N Y/N N N None
Y/N Y/N N Y See Note 2
Y/N Y Y N See Notes 1 and 3
N Y Y Y See Notes 1 and 2
Y Y Y Y See Note 4
_______________________________________________________
Note 1: The optional ACLs for the source file or directory are not copied to the destina-
tion file or directory.
Note 2: If the destination parent directory has default ACL entries, those default ACL
entries are inherited by the new file or directory (see the acl(5) reference page).
Note 3: The file permissions are copied to the destination file or directory and the class
entry permissions in the ACL are used for the destination file or directory group
permissions.
Note 4: All ACL entries are retained by the new file or directory.
For G-series RVUs, H06.19 and earlier H-series RVUs, or J06.08 and earlier J-series RVUs, the
OSS Network File System (NFS) cannot access OSS objects that have OSS ACLs that contain
optional ACL entries.
For J06.09 and later J-series RVUs and H06.20 and later H-series RVUs, access by the OSS Net-
work File System (NFS) to OSS objects that have OSS ACLs that contain optional ACL entries
can be allowed, depending upon the NFSPERMMAP attribute value for the fileset that contains
the object, however:
The mv command does not move any ACLs associated with the object.
527188-021 Hewlett-Packard Company 627