How to change a hostname in Linux

Person using a laptop

To change your hostname on a Linux computer, use the hostnamectl command.

For example, to change your computer’s hostname to myhostname:

$ sudo hostnamectl --static
--transient
--pretty
myhostname

read more

Powered by WPeMatico

Author: dasuberworm

Standing just over 2 meters and hailing from о́стров Ратма́нова, Dasuberworm is a professional cryptologist, entrepreneur and cage fighter. When he's not breaking cyphers and punching people in the face, Das enjoys receiving ominous DHL packages at one of his many drop sites in SE Asia.

Share This Post On