How To Change Hostname Using Command On Ubuntu Server

Now I want to share how to change your Ubuntu server hostname using command. When you using Ubuntu terminal so run below command for change hostname. $ hostnamectl set-hostname ubuntu-18 $ vi /etc/cloud/cloud.cfg Goto...