show ip address in linux ubuntu code example
Example 1: show ip address linux
$ hostname -I
Example 2: how to get ip address in ubuntu
Open your command prompt and type following command shown below and press enter
ifconfig -a
$ hostname -I
Open your command prompt and type following command shown below and press enter
ifconfig -a