How To Change The Hostname (Computer Name) In Ubuntu

If you need to change the computer name (hostname) in Ubuntu for whatever reason, you won't find a System Settings option to do it so you must edit two configuration files. But don't worry, it's an easy task!