ip lookup linux code example
Example 1: display ip address linux
#private ip
hostname -I
or
ifconfig
or
ip addr show
#public ip
curl ifconfig.me
Example 2: how to show ip in terminal debian
1- sudo ifconfig
2- ip a
#private ip
hostname -I
or
ifconfig
or
ip addr show
#public ip
curl ifconfig.me
1- sudo ifconfig
2- ip a