The Linux command line is a great tool. Today I’ll like to share a method to get Geographical IP information with one command, using curl and the tool of

It is as easy to use this command:

$ curl<IP Address>

Here you have an example:

Curl ipinfo

You will have these parameters:

  • IP
  • City
  • Region
  • Country
  • Loc (Coordinates)
  • Org
  • Postal
  • Timezone

If you want to get information about the Public IP Address you use to go to The Internet, you could execute the command this way:

$ curl

And if you only want to get the IP Address, without more details:

$ curl

And that’s all. If you want more information about an IP address, you could visit the website of, and you’ll get some more information and tools.