Changing hostname in linux without rebooting the server

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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store