For future reference, you should have edited that file with sudoedit. sudoedit will save a backup copy, and only overwrite the file if the editor exits normally (I think).
# sudoedit /etc/hostname
("Please pick an editor")
For future reference, you should have edited that file with sudoedit. sudoedit will save a backup copy, and only overwrite the file if the editor exits normally (I think).
# sudoedit /etc/hostname
("Please pick an editor")