Changing hostname in linux without rebooting the server

Oleg Zech
Apr 14, 2021

--

hostnamectl set-hostname <new_name>

This little article is a response to brilliant tech republic article https://www.techrepublic.com/article/how-to-set-a-linux-hostname-without-rebooting/

The article linked above has 283 words, 1613 characters.

To describe typing 3 words

Let is sink for a moment.

Yes, I understand not everyone knows what is hostname (really?)
But people googling for solution certainly do.

--

--