Hii buddies, in this post let we see how to change and display the host name in the linux systems in different ways.
Generally we see the host name of linux
system in the terminal window, like username@hostname:~$
To display the hostname, domain name in
the terminal type the below commands
$hostname
$domainname
For Debian based Linux and Open SuSe Distribution users:
Various other commands for display and
change hostname,
- To display hostname
#sysctl kernel.hostname