mv command in Linux with Examples

mv command mean Renames or Moves files

mv command in Linux with Examples

Syntax

mv [OPTION]… [-T] SOURCE DEST
mv [OPTION]… SOURCE… DIRECTORY
mv [OPTION]… -t DIRECTORY SOURCE…

On the man page, the describes it

  • mv – move (rename) files
  • man mv – More details information about mv command.

mv command in Linux with Examples

$ mv source.txt destination.txt

Conclusion

mv command is a simple command in Linux. It is the most popular in use terminal Linux move (rename) files. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

1 thought on “mv command in Linux with Examples

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.