mv

From Juneday education
Jump to: navigation, search


mv - move (rename) files.

On this page we only give you a short introduction with a few examples. We encourage you to read the manual (man mv).

Description

The mv command (Unix and GNU) is used to move files or directories from one location in the file system to another. Read more: Read about mv on wikipedia .

Example usage

To change the name ("moving the file's name") of a file from oldfilename to newfilename

$ mv oldfilename newfilename

To move the file my-file.txt to a directory some-dir

$ mv my-file.txt some-dir