Systemd: change hostname

Published by

Posted on October 17, 2015

With systemd replacing the default init daemon. Changing the host name on linux system have changed also.

hostnamectl –static set-hostname

Background on systemd from Wikipedia

systemd is a software suite for central management and configuration of the GNU/Linux operating system. It consists of server applications (daemons), run time libraries, development tools, and command line utilities.

Systemd has been used as the Linux init system to bootstrap the user space and manage all processes subsequently, replacing the UNIX System V and Berkeley Software Distribution (BSD) init systems. The name systemd adheres to the Unix convention of naming daemons by appending the letter d.[6] The software suite is published as free and open-source software under the terms of the GNU Lesser General Public License (LGPL) version 2.1 or later.[5] One of systemd’s main goals is to unify basic Linux configurations and service behaviors across all distributions.[7]