MV(1)
๐ MV(1) โ the move/rename girlies' bible ๐
okay bestie, welcome to MV(1), a User Commands icon from the GNU coreutils manual set. this is the one that moves and renames your files. she's simple, she's powerful, she will absolutely overwrite your stuff if you don't pay attention. let's get into it ๐ซถ
โจ NAME โจ
mv โ move (rename) files ๐
๐ธ SYNOPSIS ๐ธ
mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...
๐ฆ DESCRIPTION ๐ฆ
the whole vibe, in one line: rename SOURCE to DEST, or move SOURCE(s) into DIRECTORY. that's it. that's the girl.
โญ mandatory arguments to long options are mandatory for short options too. no exceptions, no shortcuts, periodt.
here's every single option, and yes we're doing all of them, because you deserve the full picture:
--backup[=CONTROL]โ makes a backup of each existing destination file. she's preserving the lore.-bโ like--backupbut does not accept an argument. same energy, less talking.--debugโ explains how a file is copied. this one implies-v๐--exchangeโ exchanges source and destination. they swap places, main character energy on both sides.-f,--forceโ do not prompt before overwriting. she does not ask, she does not text back.-i,--interactiveโ prompt before overwrite. she WILL check in with you first, bestie.-n,--no-clobberโ (deprecated) silently skips existing files. see also--update. yeah she's a little outdated, still valid though.--no-copyโ do not copy if renaming fails. if she can't rename it, she's not doing the whole copy thing either.--strip-trailing-slashesโ removes any trailing slashes from eachSOURCEargument. cleaning up after the slashes, so thoughtful.-S,--suffix=SUFFIXโ overrides the usual backup suffix.-t,--target-directory=DIRECTORYโ moves allSOURCEarguments intoDIRECTORY. one destination, many sources, very efficient.-T,--no-target-directoryโ treatsDESTas a normal file. no "oh you must have meant a folder" assumptions here.--update[=UPDATE]โ controls which existing files get updated;UPDATE={all,none,none-fail,older(default)}-uโ equivalent to--update[=older]. see below ๐-v,--verboseโ explains what is being done. she narrates. she's a talker. we love her.-Z,--contextโ sets SELinux security context of destination file to default type.--helpโ display this help and exit.--versionโ output version information and exit.
๐ if you specify more than one of-i,-f,-n, only the final one takes effect. last one wins, no negotiating.
๐ all about UPDATE ๐
UPDATE controls which existing files in the destination get replaced. here's the tea:
'all'is the default operation when an--updateoption is not specified, and results in all existing files in the destination being replaced. no thoughts, just replace.'none'is like the--no-clobberoption, in that no files in the destination are replaced, and skipped files do not induce a failure. she's gentle about it.'none-fail'also ensures no files are replaced in the destination, but any skipped files are diagnosed and induce a failure. she's gentle but she's also telling on you.'older'is the default operation when--updateis specified, and results in files being replaced if they're older than the corresponding source file. out with the old, fr fr.
๐ backup suffixes & methods ๐
the backup suffix is '~', unless you set it 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, bestie:
none,offโ never make backups (even if--backupis given). living dangerously, iconic.numbered,tโ make numbered backups.existing,nilโ numbered if numbered backups exist, simple otherwise. she reads the room first.simple,neverโ always make simple backups.
๐ AUTHOR ๐
Written by Mike Parker, David MacKenzie, and Jim Meyering. kings, all of them. ๐ซถ
๐ REPORTING BUGS ๐
found a bug? not her fault, but please tell the team:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. say it with me. no warranty. none. ๐
๐ฅ SEE ALSO ๐ฅ
rename(2)- Full documentation <https://www.gnu.org/software/coreutils/mv> or available locally via:
info '(coreutils) mv invocation'
okay that's the whole page, you're officially a mv scholar now, go rename something responsibly and don't mv your home directory by accident ๐ญ
GNU coreutils 9.12 ยท September 2026 ยท that's the whole MV(1) page, mwah ๐ โจ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms