Skip to Main Content

Linux Terminal

mv

mv is used to move files. To move a file, type mv followed by the file you want to move and its destination as shown in the figure below.

mv can also be used to rename a file, to do this, use mv followed by the current filename and its new name as shown below.

cp

We have just learned how to move files. To copy files to another destination, use the command cp. This command works the same way as mv (refer to section above).