Find out the IP

In order to find out your IP, there are several commands.

ifconfig -a

will give you all the network interfaces used.

ifconfig | grep inet | grep -v inet6 | grep -v 127.0.0.1 | cut -d: -f2 | awk '{printf $1"\n"}'

will reduce the output of the command, making it more informative.

If you come across a system without a built-in ifconfig command (yes, this is also possible)

then try:

ip links list

to display interfaces and

ip addr show | grep inet

to output IP.