mv(1)
π NAME π
okay bestie, this is mv(1) from the General Commands Manual β the move command. mv moves SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. Itβs giving file relocation realness. π
β¨ SYNOPSIS β¨
mv [-f|--force] [-i|--interactive] [-n|--no-clobber]
[--strip-trailing-slashes] [--backup] [-b ] [-S|--suffix] [--update] [-u
] [-t|--target-directory] [-T|--no-target-directory] [-v|--verbose]
[-g|--progress] [-Z ] [--context] [--debug] [-h|--help] [-V|--version]
<files>
π¦ DESCRIPTION π¦
Move SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. Thatβs the whole vibe. No cap. β¨ Slay.
π OPTIONS π
-f,--forceβ do not prompt before overwriting. Just send it. π-i,--interactiveβ prompt before override. Consent check, bestie. π-n,--no-clobberβ do not overwrite an existing file. Not today, existing file. π--strip-trailing-slashesβ remove any trailing slashes from eachSOURCEargument. Slash cleanup era. π§Ή--backup[=<CONTROL>]β make a backup of each existing destination file. Security blanket, but make it fashion. π-bβ like--backupbut does not accept an argument. No extra args, just vibes. β¨-S,--suffix <SUFFIX>β override the usual backup suffix. You pick the suffix, bestie. π--updateβ move only when theSOURCEfile is newer than the destination file or when the destination file is missing.- Possible values:
nonealloldernone-fail
- Possible values:
-uβ like--updatebut does not accept an argument.-t,--target-directory <DIRECTORY>β move allSOURCEarguments intoDIRECTORY. Put them all in one place. π-T,--no-target-directoryβ treatDESTas a normal file. No directory energy. π«-v,--verboseβ explain what is being done. Narrator mode: ON. ποΈ-g,--progressβ Display a progress bar. Note: this feature is not supported by GNU coreutils.-Zβ set SELinux security context of destination file to default type. Security context, but make it default. π--context[=<CTX>]β like-Z, or ifCTXis specified then set the SELinux security context toCTX. You can specifyCTX, iykyk. π§--debugβ explain how a file is copied. Implies-v. Debug girlies, rise. π-h,--helpβ Print help. We love a help flag. π«Ά-V,--versionβ Print version. Version check, periodt. π<files>β the files youβre moving, bestie. π
π EXTRA π
When specifying more than one of -i, -f, -n, only the final one will take effect. Last one wins, periodt. π
Do not move a non-directory that has an existing destination with the same or newer modification timestamp; instead, silently skip the file without failing. No drama, no failure, just skip. π
If the move is across file system boundaries, the comparison is to the source timestamp truncated to the resolutions of the destination file system and of the system calls used to update timestamps; this avoids duplicate work if several mv -u commands are executed with the same source and destination. Efficiency queen. β¨
This option is ignored if the -n or --no-clobber option is also specified. which gives more control over which existing files in the destination are replaced, and its value can be one of the following:
allβ This is the default operation when an--updateoption is not specified, and results in all existing files in the destination being replaced.noneβ This is similar to the--no-clobberoption, in that no files in the destination are replaced, but also skipping a file does not induce a failure.olderβ This is the default operation when--updateis specified, and results in files being replaced if theyβre older than the corresponding source file.
The backup suffix is '~', unless set 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:
none,offβ never make backups (even if--backupis given)numbered,tβ make numbered backupsexisting,nilβ numbered if numbered backups exist, simple otherwisesimple,neverβ always make simple backups
π VERSION π
v(uutils coreutils) 0.7.0
xoxo, this has been mv(1) from the General Commands Manual, source/version mv (uutils coreutils) 0.7.0 πβ¨
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms