This command is one of the easiest around. There are two helpful parameters to
mv: -f, which overwrites files without asking; and
-u, which moves the source file only if it is newer than the destination file. That’s it. You can use absolute paths to indicate the destination directory (starting from /) or relative paths from the current directory (starting without a slash). This is generally entered in the source directory, but it doesn’t have to be; you can use an absolute path to indicate the source directory, too.
matthew@seymour:~$ mv filename /newdirectory/newfilename