hostnamectl - control the system hostname and related settings
The hostname is a systemd utility that is used to get the Linux operating system information and also to change or set the system hostname.
Please refer to hostname article for instructions on how to change hostname in Linux.
Also, please review our article on how_to_find_out_distribution_of_linux your machine is running.