Your Question: What Is My Ip on Linux Command Line?
Contents

You can determine the IP address or addresses of your Linux system by using the hostname , ifconfig , or ip commands. To display the IP addresses using the hostname command, use the -I option. In this example the IP address is 192.168. 122.236.

How do I find my IP address in Terminal?

How to Find Router IP Address with the Terminal App

  1. Open the Terminal app. You can find this by opening your Applications folder and double-clicking Utilities.
  2. Then type netstat -nr|grep default, and press Enter.
  3. Your router’s IP address will be indicated after the line which says “default.”

How do I find ipconfig in Linux?

The ifconfig command works in the same way for finding the IP address of a device using terminal in Linux as ipconfig command works for finding the IP address of a device using command prompt in Windows.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest