{"id":742,"date":"2012-05-23T10:57:25","date_gmt":"2012-05-23T17:57:25","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=742"},"modified":"2012-05-23T10:57:25","modified_gmt":"2012-05-23T17:57:25","slug":"macos-modify-hostname-from-terminal","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=742","title":{"rendered":"MacOS &#8211; modify hostname from Terminal."},"content":{"rendered":"<p>You can use the scutil command to change the hostname of a MacOS computer.<\/p>\n<p>$ hostname<br \/>\nmycomputer.domain.com<\/p>\n<p>$ sudo scutil &#8211;set HostName mynewcomputername.domain.com<br \/>\n$ hostname<br \/>\nmynewcomputername.domain.com<\/p>\n<p>Likewise, you can change the ComputerName variable too:<\/p>\n<p>$ sudo scutil &#8211;set ComputerName mynewcomputername.domain.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use the scutil command to change the hostname of a MacOS computer. $ hostname mycomputer.domain.com $ sudo scutil &#8211;set HostName mynewcomputername.domain.com $ hostname mynewcomputername.domain.com Likewise, you can change the ComputerName variable too: $ sudo scutil &#8211;set ComputerName mynewcomputername.domain.com<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[274,99,275],"class_list":["post-742","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-hostname","tag-macos","tag-scutil"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=742"}],"version-history":[{"count":2,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/742\/revisions"}],"predecessor-version":[{"id":744,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/742\/revisions\/744"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}