Hostname

hostnamectl

NAME

    hostnamectl - Control the system hostname

 

SYNOPSIS

    hostnamectl [OPTIONS...] {COMMAND}

 

DESCRIPTION

    hostnamectl may be used to query and change the system hostname and

    related settings.

must reboot to take effect