Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 758 Bytes

mv.md

File metadata and controls

41 lines (29 loc) · 758 Bytes
title description created updated
mv Linux Command
mv (move) Linux Command is used to move one or more file/directories from one place to another. This also used to rename files/directories
2019-09-13
2019-09-13

mv (move) Linux Command is used to move one or more file/directories from one place to another. This also used to rename files/directories

Syntax

mv [Option(s)] [source] [destination]

Options

Option Description
-i Interactively move
-f Force override destination

Example

Renaming a file

mv readme.txt readme-v2.txt

Moving file to user home folder

mv readme.txt ~/

Moving file to given destination directory

mv readme.txt /path/to/destination/