Assuming you have file extensions shown in the OS X Finder, attempting to change a file extension causes a warning dialog with a confirmation box to appear. This is annoying if you know what you’re doing and you have a compelling reason to change extensions, so let’s turn it off using the command line and defaults write.
First, open the Terminal, located within the /Applications/Utilities/ directory, then copy and paste in the following command: