check ip of current machine linux code example Example 1: linux check ip address command ifconfig -a Example 2: how to show ip in terminal debian 1- sudo ifconfig 2- ip a