Command to check Linux Server Hostname part1

In the starting stage of web hosting engineer career the first command every engineer must know is hostname, how to check the server hostname. If the server is not having any control panel or its having another contro panel then cPanel installed control panel, in that case refer to the following two command to check the server hostname.

1st) Login in the server run the command

hostname

It will provide the following result, as per result the hostname is “server.linux.com”

2nd) The another command to check the server hostname is as follows but its little confusing for the new user therefore new user can use the above command.In the following result the server ip address is 192.168.0.1 and server hostname is server.linux.com

 

 

About Anant 373 Articles
Senior technical writer