mv (Move file or directory Ubuntu Linux Command Tutorials )

  • mv stands for move files or directories.

  • mv can also be used to rename files or directories.

  • The following snapshot shows the mv command used as rename which is used to rename myfile.txt to newfile.txt.

 

 

  • The following snapshot shows the mv command used to rename which is used to rename directory mydir to mydirectory.

  • The green highlighted font shows the directory.

 

  • The following snapshot shows the mv shows used to move file from source to destination

  • The yellow font shows the file moved.

 


 

border