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 (
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 .
To change the name ("moving the file's name") of a file from
$ mv oldfilename newfilename
To move the file
my-file.txt to a directory
$ mv my-file.txt some-dir