bash$ mv newfile.txt temp/
If the directory did not exist then this would change the name of the file from newfile.txt to temp/ instead. If you are logged in as root or have superuser privileges you can copy the file to a directory that the user might not have rights to copy files to:
bash# mv newfile2.txt /var/www/html/