Sudo hostnamectl set-hostname "Your Pretty HostName" -pretty The linguistic structure is as per the following: sudo hostnamectl set-hostname In this model, the current hostname is set to ubuntu2004.localdomain.Ĭhanging the framework hostname is a basic cycle. ![]() To see the current hostname, conjure the hostnamectl order with no contention: hostnamectl ![]() Just root or clients with sudo benefits can change the framework hostname. It is prescribed to utilize a completely qualified space name (FQDN ), for example, for both static and transient names. Of course, it is equivalent to the static hostname. DHCP or mDNS workers can change the transient hostname at run time.
0 Comments
Leave a Reply. |