The mv command (short for move) is used to move files or directories into a different directory. The mv command is used like this:

mv source target

When you want to move a file into a directory, the source will be the name of the file you want to move and the target will be an existing directory in your working directory. Note that the target must be an existing directory. You cannot move a file into a directory that does not already exist.

You can also move a directory into another directory. In this case, both source and target will be existing directories. Source will be the directory you want to move, and target will be the directory to move the source to.

If you accidentally supply a source file or directory to the mv command that does not exist, UNIX will give you an error message. When you get an error message, just try to enter the command again. Remember that UNIX is case-sensitive and spelling counts!