How to check the local IP address on Linux?
You can check your local IP address in a Linux system using the ifconfig command. Open a terminal window and enter the following command:
ifconfig
In the output, find the network interface where you want to view the IP address, usually eth0 or wlan0, and look for the inet field under that interface section, the following numbers represent the local IP address.
Additionally, you can use the “ip addr” command to check your local IP address by typing the following command:
ip addr
Find the network interface where you want to check the IP address in the output, usually eth0 or wlan0, and the number after the inet field is the local IP address.