mv
Move (rename) files or directories
TLDR
Rename a file or directory when the target is not an existing directory
Move a file or directory into an existing directory
Move multiple files into an existing directory, keeping the filenames unchanged
Do not prompt for confirmation before overwriting existing files
Prompt for confirmation interactively before overwriting existing files, regardless of file permissions
Do not overwrite existing files at the target
Move files in verbose mode, showing files after they are moved
Specify target directory so that you can use external tools to gather movable files
SYNOPSIS
mv [options] source... destination
PARAMETERS
-b, --backup
Make backup of existing destination
-f, --force
Don't prompt before overwriting
-i, --interactive
Prompt before overwriting
-n, --no-clobber
Don't overwrite existing files
-t, --target-directory=DIR
Move all sources to directory
-u, --update
Move only when source is newer
-v, --verbose
Explain what is being done
--strip-trailing-slashes
Remove trailing slashes from source
-T, --no-target-directory
Treat destination as normal file
DESCRIPTION
mv moves or renames files and directories. When moving within the same filesystem, it simply renames the file (changing directory entries). When moving across filesystems, it copies the data and then removes the original.
CAVEATS
Cross-filesystem moves are slower (copy + delete). Moving to existing directory places source inside it. Permissions may change on cross-filesystem moves.


