mv

Name

mv -- move (rename) files

Description

The specification for "mv" is as specified in the SUS but with the following differences as listed below.

Differences

-b, --backup[=CONTROL]

make backup before removal

-S, --suffix=SUFFIX

override the usual backup suffix

--strip-trailing-slashes

remove any trailing slashes from each SOURCE argument

-S, --suffix=SUFFIX

override the usual backup suffix

--target-directory=DIRECTORY

move all SOURCE arguments into DIRECTORY

-u, --update

move only older or brand new non-directories

-v, --verbose

explain what is being done

--version

output version information and exit

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

never make backups (even if --backup is given)

numbered, t

make numbered backups

existing, nil

numbered if numbered backups exist, simple otherwise

simple, never

always make simple backups