mv

Name

mv -- move (rename) files

Description

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

Differences

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