How to view ip address of a Linux system

In Windows operating system you can use ipconfig command to view ip address of a system. In Linux ifconfig command can be used to view ip address of an system. ifconfig can be to used to manage and configure network setting on Linux system.

View details ip address details network interface

Syntax

ifcongif

This is basic ifconfig usage where displayed details show Ethernet network interface as eth , Wireless interface as wlan and loopback service as lo. Each displayed will have number displayed at its end like eth0, eth1 and eth2 or wlan1, wlan2 and wlan3, this number distinguishes multiple interfaces from one another.

View details of only specific network interface

To view ip address of Linux system for only specific network interface use interface name along with ifconfig command as an argument.

Syntax

ifconfig wlan0

Checkout below articles to view detailed ifconfig usage

https://infojinx.com/2018/06/how-to-use-ifconfig-command-in-linux-with-examples/