Mv” command is used to move and rename the files.
- Ex: mv first1 first1.bad
This command renames the file “first1” to the “first1.bad”
- Mv first1 mylocal
This command renames the file “first1” to the new name “mylocal”
- Mv first1 /usr/my/tmp
This command moves the file “first1” in to the directory named “usr/my/tmp”