Change hostname in Ubuntu

— Add/Rename hostname inside “/etc/hosts“ — Add/Rename hostname inside “/etc/hostname“ — Dynamically update the hostname as well — Reboot the system