Rename the file name from Parent directory

Hi All,

Just started learning unix and stuck into below issue.

Suppose i have folder structure as below.

Dir1/Dir2/Dir3/File1.msg

I am looking to rename the file name from File1.msg to File2.msg but from the parent Dir1

From Dir3 i can easily run the command like

mv File1.msg File2.msg

.

But can i can run from parent directory if i already know the directory Path.

Any help would be much appreciated

Thanks
Gurjeet

mv -v Dir2/Dir3/File1.msg Dir2/Dir3/File2.msg

or if supported by your shell

mv -v Dir2/Dir3/File{1,2}.msg

Even a temporary cd is possible - in a sub shell

(cd Dir2/Dir3 && mv File1.msg File2.msg)

The current directory in the main shell is not affected.
The sub shell can mean a little overhead because it is a copy of the main shell.