mv for filesystem

Move files or directories using uutils/coreutils mv.

Signature

> mv {flags} ...rest

Flags

  • --force, -f: do not prompt before overwriting
  • --verbose, -v: explain what is being done.
  • --progress, -p: display a progress bar
  • --interactive, -i: prompt before overwriting
  • --no-clobber, -n: do not overwrite an existing file

Parameters

  • ...rest: Rename SRC to DST, or move SRC to DIR.

Input/output types:

inputoutput
nothingnothing

Examples

Rename a file

> mv before.txt after.txt

Move a file into a directory

> mv test.txt my/subdirectory

Move many files into a directory

> mv *.txt my/subdirectory