It has been more than a decade since the
ifconfig command has been deprecated on Linux in favor of the
iproute2 project, which contains the magical tool
ip. Many online tutorial resources still refer to old command-line tools like
netstat. The goal of this tutorial is to share some of the simple networking-related things you can do easily using the
ip tool instead.
Find your IP address
ip addr show will show you a lot of information about all of your network link devices. In this case, my wireless Ethernet card (wlp4s0) is the IPv4 address (the
/23 means that there are 23 bits of the 32 bits in the IP address, which will be shared by all of the IP addresses in this subnet. IP addresses in the subnet will range from
10.16.196.0 to 10.16.197.254. The broadcast address for the subnet (the
brd field after the IP address)
10.16.197.255 is reserved for broadcast traffic to all hosts on the subnet.
Read more at OpenSource.com