Find the answer to your Linux question:
Results 1 to 4 of 4
I cannot update my hostname. when I type: Code: hostname it will display my current hostname. When I type: Code: sudo hostname mactruck.me and then I do Code: hostname It ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie mactruck's Avatar
    Join Date
    Apr 2012
    Location
    City of Salt
    Posts
    187

    Hostname will not update.


    I cannot update my hostname.
    when I type:
    Code:
    hostname
    it will display my current hostname. When I type:
    Code:
    sudo hostname mactruck.me
    and then I do
    Code:
    hostname
    It will display mactruck.me

    When I reboot it reverts back to my old hostname.
    Any thoughts?

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    917

  3. #3
    Linux Newbie mactruck's Avatar
    Join Date
    Apr 2012
    Location
    City of Salt
    Posts
    187
    awesome, I updated the /etc/hostname file and it worked.

    Thanks mizzle and google.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    917
    I actually knew how to change it, but wanted to show you the awesome power of the google!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •