The Linux mv command lets you move one or more files or directories. Since it's very similar to the cp command, I'll move through this post quickly.
Basic Linux mv examples
To rename a file currently named "foo" to a new file named "bar" just type:
mv foo bar
Although it's called the Linux mv command, it's commonly used to rename files.
To move a file named "foo" to the /tmp directory type: