Get IP

You can get your IP with the following commands.

ifconfig -a

will output all the network interfaces

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

will reduce the output, making it more informative.

If your distributive doesn’t have the pre-installed ifconfig command(yes, that’s possible)

then try:

ip links list

to see the interfaces and

ip addr show | grep inet

to get the IP.