mv

move aka rename a file or directory

not available on Mac os distributed utilities.

mv [option][-T] source dest
mv [option]source… directory
mv [option]… -t directory source…

Rename source to dest Or move source(s) to directory.

If source is on a different file system than dest it is copied and then the original is deleted.
This requires write permission to the source !

-u
--update
only when the source is newer than the dest.
specifing more than one of -i, -f, -n, only the final one takes effect.
-i
--interactive
prompt before overwrite
-f
--force
do not prompt before overwriting
-n
--no-clobber
do not overwrite an existing file
-b rename destinations first using ~ suffix.
-backup[=control]
control option or through $VERSION_CONTROL
none
off
Don't make backups (even with --backup )
numbered
t
numbered backups
existing
nil
numbered if numbered backups exist, simple otherwise
simple
never
always make simple backups
-S
--suffix=suffix
override the default backup suffix ,~,
unless set with --suffix or $SIMPLE_BACKUP_SUFFIX.
The version control method may be selected via --backup
-strip-trailing-slashes remove trailing slashes from sources.
-T
--no-target-directory
treat dest as a normal file
-t
--target-directory=directory
all sources to directory
-v
--verbose
display what is happening
-Z
--context
set SELinux security context of destination file to default type
-help display this help and exit
-version output version information and exit