mv -- move (rename) files


mv is as specified in the Single UNIX Specification but with differences as listed below.

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

-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.