ip address ubuntu

Shell
ip address show# when you're on your terminal Window : 
ipconfig

# on macOS : 
ifconfig | grep "inet" | grep -v 127.0.0.1

# on Linux : 

hostname -Icurl ifconfig.meOpen your command prompt and type following command shown below and press enter

ifconfig -a
Source

Also in Shell: