How to change hostname on Ubuntu?
May 23, 2022
⋅
0 minutes read
We can simply use the hostnamectl
command to change hostname.
To see the current setting just typing the following command:
Sample output:
To change hostname from john-laptop
to thien-laptop
, use the following command: