Linux hostname is consist of letters, numbers, " -", " _" and/or ". It’s harmless and useful to make it easy to identify your host. After upgrading system edition or moving server location, you may change the hostname. By default, it is the same as the static hostname.Need to change your Ubuntu PC/laptop or server’s computer name? Here’s how to do the trick in 4 different ways!Ĭomputer name (aka hostname) is a label on computer network that is used to identify the device. transient – It is the dynamic hostname maintained by the kernel.pretty – It is a free-form UTF8 hostname used for presentation to the user.static – It is the traditional hostname and is stored in the /etc/hostname file.The three classes of hostname recognized by the hostnamectl command are: This simplification of the hostname string is not done if only the transient and/or static host names are set, and the pretty host name is left untouched. This ensures that the pretty and the static hostname are always closely related while still following the validity rules of the specific name. This is done by replacing spaces with “-” and removing special characters. If the pretty hostname is being set, and static or transient are being set as well, the specified hostname will be simplified in regards to the character set used before the latter are updated. By default, this will alter the pretty, the static, and the transient hostname alike however, if one or more of –static, –transient, –pretty are used, only the selected hostnames are changed. set-hostname NAME: Set the system hostname to NAME.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |