To get the IP address on Ubuntu 16.04, you can use the following steps:
Open the terminal by pressing Ctrl+Alt+T.
Type the command “ip addr show” and press Enter.
Look for lines starting with “inet” and followed by an IP address; typically “inet” lines have an IP address for each network interface on your machine.
Your IP address will be listed next to “inet” on the interface you are using to connect to the internet.
1 | 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 |
Note: you can also use the “ifconfig” command to get the IP address of your network interface, but this command is deprecated and not installed by default in Ubuntu 16.04.