Windows move equivalent in Linux
Moves files to a new location, or renames them. In Linux, renaming IS moving.
move
mv
mv
mv
Overview
What this command does
On Windows, "move" is used to move or rename files. On Linux, the closest practical mapping shown here is "mv". Moves files to a new location, or renames them. In Linux, renaming IS moving. This reference is grouped under File Management → File System.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows move maps to mv for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.
Portable across the compared distros
The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.
For the broader concept behind this mapping, read Linux filesystem for Windows users.
Practical tasks
Common use cases
Move or rename files
Moves files to a new location, or renames them. In Linux, renaming IS moving.
mv -i
Prompt before overwriting
mv -v
Verbose — show what moved where
mv -u
Move only if source is newer
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
mv file.txt Documents/
mv oldname.txt newname.txt
mv OldFolder NewFolder
mv -v *.log /var/log/archive/
Walkthrough
Examples with explanations
# Windows: move file.txt Documents\
mv file.txt Documents/ # move a file
# Windows: rename oldname.txt newname.txt
mv oldname.txt newname.txt # rename a file
mv OldFolder NewFolder # rename a directory
mv -v *.log /var/log/archive/ # move all .log files
Reference
Common options and variations
| Command or option | Use |
|---|---|
mv -i | Prompt before overwriting |
mv -v | Verbose — show what moved where |
mv -u | Move only if source is newer |
mv -n | Do not overwrite existing files |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
Debian/Ubuntu, Fedora and Arch all use "mv" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | same command | mv |
Same command on this distribution. |
| Fedora | same command | mv |
Same command on this distribution. |
| Arch | same command | mv |
Same command on this distribution. |
Keep learning