mv(1)

πŸ“¦
version 0.7.0 Β· 4 versions
, in epel 10, fedora 43

πŸ’– 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 each SOURCE argument. Slash cleanup era. 🧹
  • --backup[=<CONTROL>] β€” make a backup of each existing destination file. Security blanket, but make it fashion. πŸŽ€
  • -b β€” like --backup but 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 the SOURCE file is newer than the destination file or when the destination file is missing.
    • Possible values:
      • none
      • all
      • older
      • none-fail
  • -u β€” like --update but does not accept an argument.
  • -t, --target-directory <DIRECTORY> β€” move all SOURCE arguments into DIRECTORY. Put them all in one place. πŸ“
  • -T, --no-target-directory β€” treat DEST as 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 if CTX is specified then set the SELinux security context to CTX. You can specify CTX, 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 --update option is not specified, and results in all existing files in the destination being replaced.
  • none β€” This is similar to the --no-clobber option, 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 --update is 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 --backup is given)
  • numbered, t β€” make numbered backups
  • existing, nil β€” numbered if numbered backups exist, simple otherwise
  • simple, 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