ip machine ubuntu code example
Example 1: how to get ip address in ubuntu
Open your command prompt and type following command shown below and press enter
ifconfig -a
Example 2: IP adress terminal
# when you're on your terminal Window :
ipconfig
# on macOS :
ifconfig | grep "inet" | grep -v 127.0.0.1
# on Linux :
hostname -I