+1 607 252-6647 Email Questions

How to change a hostname in Linux

  • Published in News
  • Hits: 64
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 \

Read more from our friends at Opensource.com

Contact Us

Social: twitter facebook

Phone: +1 607 252-6647

Email: admin [AT] synapticweb [DOT] co