Kar Chun TanCreatorMetadata Fri Mar 28 2025 Linux 1 min read 19 wordsShareOn This PageEdit hostname on UbuntuEdit /etc/hostnameReplace any hostname you like. Save the file.Reboot the systemCheck your hostnameQuestion? Give us feedback Edit this page Scroll to topCopy pageEdit hostname on Ubuntu Edit /etc/hostnamesudo nano /etc/hostnameReplace any hostname you like. Save the file./etc/hostnamehello-laptopReboot the systemsudo rebootCheck your hostnamehostname Last updated on September 10, 2025
Copy pageEdit hostname on Ubuntu Edit /etc/hostnamesudo nano /etc/hostnameReplace any hostname you like. Save the file./etc/hostnamehello-laptopReboot the systemsudo rebootCheck your hostnamehostname Last updated on September 10, 2025