hostname
What is hostname
hostname
is a commandline tool used to display hostname portion of the full computer name of a given system.
hostname usage
Basic usage is the command without any arguments.
In order to display the network interfaces IP addresses, I
option should be used:
hostname -I