Brad Rogers wrote:
[...]You seem to be under the impression that the command hostname writes tothe file /etc/hostname. AIUI, that is *not* the case. You'll have to alter the file in a text editor.
Thanks Brad - I've come to the same conclusion. Thanks to everyone else who contributed to the thread.