Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 435 Bytes

mv.md

File metadata and controls

21 lines (16 loc) · 435 Bytes

MV

Moves or renames a file.

  • If another directory is specified, then the file will be moved acording to the argument
  • If the same directory is specified, but another filename, the file will be renamed
# Moving file "a.txt" to "/b" directory
mv a.txt /b/a.txt
# Renames file "a.txt" to "b.txt"
mv a.txt b.txt
# Renames file "file.txt" to "file with spaces.txt"
mv file.txt file\ with\ spaces.txt