how to get local ip linux code example
Example 1: linux check ip address command
ifconfig -a
Example 2: get your ip address from terminal
for local ip :
hostname -I
for Public ip :
curl icanhazip.com
Example 3: how to show ip in terminal debian
1- sudo ifconfig
2- ip a