
mv (short for move) is a command to move file or directory from one place to another. The original filename or directory name is no longer accessible. The new filename may be same in another directory and/or a different filename. When the original and new files are on the same file system, mv will rename the file instead.
1. Rename a file
# mv newfile oldfile
2. Move file to other directory
# mv newfile /home/itsiti