mv -- move (rename) files


mv is as specified in the SUS but with differences as listed below.


-b, --backup[=CONTROL]

makes backup before removal.

-S, --suffix=SUFFIX

overrides the usual backup suffix.


removes any trailing slashes from each SOURCE argument.

-S, --suffix=SUFFIX

overrides the usual backup suffix.


moves all SOURCE arguments into DIRECTORY.

-u, --update

moves only older or brand new non-directories.

-v, --verbose

explains what is being done.


outputs version information and exits.


The backup suffix is ~, unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values:

none, off

makes no backups (even if --backup is given).

numbered, t

makes numbered backups.

existing, nil

is numbered if numbered backups exist, simple otherwise.

simple, never

makes simple backups.