How to see ip in linux

In this article let’s discuss about How to see ip in linux. Let’s go through the following methods without any delay.

Method 1:

#private ip
hostname -I
ip addr show

#public ip

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

ifconfig -a

Hope the above solution works.

Realted Posts : How to get ip address linux