How To Install Mv?

How To Install Mv?

mv

Move or rename files and directories.

Maintainer: Michael Stone



Section: utils

Install mv

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click to copy

Move or rename files and directories.

How to use mv?

Below are few example commands for mv that you can use in the terminal.

Move files in arbitrary locations:
mv source targetClick to copy
Do not prompt for confirmation before overwriting existing files:
mv -f source targetClick to copy
Prompt for confirmation before overwriting existing files, regardless of file permissions:
mv -i source targetClick to copy
Do not overwrite existing files at the target:
mv -n source targetClick to copy
Move files in verbose mode, showing files after they are moved:
mv -v source targetClick to copy
Installing mv command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of mv 2026 package in your OS.