WHAT IS mv command?

Answer:

In unix mv command is used to 'move' a file or folder from one location to another. It can also be used for renaming a file or folder.

For eg: to change the name of a file 'sample.txt' to 'testfile.txt',

mv sample.txt testfile.txt

Enter 'mv --help' or 'man mv' in the shell prompt for the manual page of mv command.

First answer by Rajeshgopan. Last edit by Rajeshgopan. Contributor trust: 34 [recommend contributor recommended]. Question popularity: 2 [recommend question].