Comments on Linux mv Command Explained for Beginners (8 Examples)

Just like cp for copying and rm for deleting, Linux also offers an in-built command for moving and renaming files. It's called mv. In this article, we will discuss the basics of this command line tool using easy to understand examples

2 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: kevin

Hi, why mv command copies files instead of moving them? It takes ages to move 2 Gb (from sdcard to same sdcard). What am I doing wrong?

 

mv /home/nydirectory/*.* .

 thank you

By: amrita chaudhari

hellow,

i m trying to rename folder name in linux terminal by using mv and rename commands

mv old_folder new_folder      cant work mv cannot stat

rename old_folder new_folder     this also wont work