Show host IP address in Linux CentOS

You can get the IP address by typing following command in console:

hostname -i

and it shows exactly only one real IP address of the host

Leave a comment