How to find the IP address of a linux server ?

To check the IP address of a Linux server, type the following command in the terminal/commandline.

ifconfig

The below command also will help in finding the ip address.

ip addr