How To Check IP Address In Linux
You can check your IP address in Linux, follow the simple steps below.
Open a terminal
Enter the following command: 'sudo ifconfig' (for variations that may not have the sudo command, use 'su -c ifconfig') If it's returning "command not found" or a similar error, it usually means the shell does not have it stored in the environment variable $PATH, or it's missing. In any case, it should be in /sbin.
Look for the information next to the relevant network device in question.
If the system can't find the path, try 'su whereis ifconfig', if you're sure that it's not in its proper place.