mv

Name

mv -- move (rename) files

Description

mv is as specified in the SUS 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.

--strip-trailing-slashes

removes any trailing slashes from each SOURCE argument.

-S, --suffix=SUFFIX

overrides the usual backup suffix.

--target-directory=DIRECTORY

moves all SOURCE arguments into DIRECTORY.

-u, --update

moves only older or brand new non-directories.

-v, --verbose

explains what is being done.

--version

outputs version information and exits.

Notes

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.