`mv': Move (rename) files ========================= `mv' moves or renames files (or directories). Synopsis: mv [OPTION]... SOURCE DEST mv [OPTION]... SOURCE... DIRECTORY If the last argument names an existing directory, `mv' moves each other given file into a file with the same name in that directory. Otherwise, if only two files are given, it renames the first as the second. It is an error if the last argument is not a directory and more than two files are given. `mv' can move only regular files across filesystems. If a destination file exists but is normally unwritable, standard input is a terminal, and the `-f' or `--force' option is not given, `mv' prompts the user for whether to replace the file. (You might own the file, or have write permission on its directory.) If the response does not begin with `y' or `Y', the file is skipped. The program accepts the following options. `--help' Print a usage message listing all available options, then exit successfully. `--version' Print the version number, then exit successfully. `-b' `--backup' Make a backup of each file that would otherwise be overwritten or removed. `-f' `--force' Remove existing destination files and never prompt the user. `-i' `--interactive' Prompt whether to overwrite each existing destination file, regardless of its permissions. If the response does not begin with `y' or `Y', the file is skipped. `-u' `--update' Do not move a nondirectory that has an existing destination with the same or newer modification time. `-v' `--verbose' Print the name of each file before moving it. `-S SUFFIX' `--suffix=SUFFIX' Append SUFFIX to each backup file made with `-b'. If this option is not specified, the value of the `SIMPLE_BACKUP_SUFFIX' environment variable is used. And if `SIMPLE_BACKUP_SUFFIX' is not set, the default is `~', just as in Emacs. `-V METHOD' `--version-control=METHOD' Use METHOD to determine the type of backups made with `-b'. If this option is not specified, the value of the `VERSION_CONTROL' environment variable is used. And if `VERSION_CONTROL' is not set, the default backup type is `existing'. This option corresponds to the Emacs variable `version-control'; the same values for METHOD are accepted as in Emacs. This options also more descriptive name. The valid METHODs (unique abbreviations are accepted): `t' `numbered' Always make numbered backups. `nil' `existing' Make numbered backups of files that already have them, simple backups of the others. `never' `simple' Always make simple backups.