Hostnamectl: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 12: | Line 12: | ||
=Overview= | =Overview= | ||
=Change the Host Name= | |||
The preferred way to change a host name is with <tt>hostnamectl</tt> as follows: | |||
<pre> | |||
</pre> | |||
=Setting the Name= | =Setting the Name= |
Revision as of 01:58, 4 April 2017
External
- http://man7.org/linux/man-pages/man1/hostnamectl.1.html
- http://man7.org/linux/man-pages/man8/systemd-hostnamed.8.html
Internal
Overview
Change the Host Name
The preferred way to change a host name is with hostnamectl as follows:
Setting the Name
hostnamectl [--static|--pretty|--transient] set-hostname blah