• Skip to main content
  • Skip to after header navigation
  • Skip to site footer

Free-Mail

  • Events
  • Images
    • Instagram Goodness
  • Music
  • News
  • Software

How to change a hostname in Linux

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: Opensource.com sethkenlon

Supporting Open Source.

Have you tried: Travelling to South Africa?

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Pinterest (Opens in new window) Pinterest
  • Email a link to a friend (Opens in new window) Email
  • More
  • Share on Tumblr (Opens in new window) Tumblr
  • Print (Opens in new window) Print
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
Published on 11 October 2021 by Alan Category: SoftwareTag: change, hostname, Linux

Oludeniz(2013-10-07)_04328

Check out this Strand Beach image: Oludeniz(2013-10-07)_04328 Image by zigel Image automatically …

Read moreOludeniz(2013-10-07)_04328

Tamron 11-20mm F2.8 Di III-A RXD RF sample gallery

Recent Videos Tamron’s 11-20mm F2.8 Di III-A RXD isn’t a new lens, but the company …

Read moreTamron 11-20mm F2.8 Di III-A RXD RF sample gallery

Rugby-Hat-tricks for Radwan and Blamire as England hammer Canada 70-14

South Africa in the news: Rugby-Hat-tricks for Radwan and Blamire as England hammer Canada 70-14: …

Read moreRugby-Hat-tricks for Radwan and Blamire as England hammer Canada 70-14

About Alan

Previous Post:Beach II
Next Post:Combating COVID-19 anti-vaxxers: lessons from political philosophy

Reach Trust

Reach Trust is a holding trust for a number of companies within the Stratlec Group.

Copyright © 2026 · Free-Mail · All Rights Reserved · Powered by Straton Electrical

Back to top