Let's say you have a file, foo.py that you are moving into a directory, call it /tmp. How can you change the filename without specifying anything in the mv command except a source file name and a destination directory?
This is kind of a trick question but it happened to me and caused problems. I'll post the answer if no one comes up with it.