Comments on: How to Find Linux Server Geographic Location in Terminal https://www.tecmint.com/find-linux-server-geographic-location/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 15:05:33 +0000 hourly 1 By: JARBAS PEIXOTO JUNIOR https://www.tecmint.com/find-linux-server-geographic-location/comment-page-1/#comment-1776267 Thu, 28 Apr 2022 15:06:29 +0000 https://www.tecmint.com/?p=32646#comment-1776267 There is a MUCH easier way to get the Geographic information.

$ curl https://ipinfo.io/json

In my case it returns:

{
   "ip": "187.113.8.100",
   "hostname": "187.113.8.100.static.host.gvt.net.br",
   "city": "Campo Grande",
   "region": "Mato Grosso do Sul",
   "country": "BR",
   "loc": "-20.4428,-54.6464",
   "org": "AS18881 TELEFÔNICA BRASIL S.A",
   "postal": "79000-000",
   "timezone": "America/Campo_Grande",
   "readme": "https://ipinfo.io/missingauth"
}
]]>
By: Christian Lehner https://www.tecmint.com/find-linux-server-geographic-location/comment-page-1/#comment-1340332 Mon, 22 Jun 2020 08:43:43 +0000 https://www.tecmint.com/?p=32646#comment-1340332 gip -g prints the geo location for the IP address.

The tool is available at GitHub: https://github.com/softhub-software-development/gip.

]]>
By: Aaron Kili https://www.tecmint.com/find-linux-server-geographic-location/comment-page-1/#comment-1275405 Fri, 25 Oct 2019 08:25:21 +0000 https://www.tecmint.com/?p=32646#comment-1275405 In reply to Kelly Brazil.

@Kelly

Thanks for sharing, we are grateful.

]]>
By: Kelly Brazil https://www.tecmint.com/find-linux-server-geographic-location/comment-page-1/#comment-1275000 Thu, 24 Oct 2019 18:29:45 +0000 https://www.tecmint.com/?p=32646#comment-1275000 In reply to Jeff H Silverman.

Hi Jeff,

You can also pass the -r option to jq to get rid of the quotation marks. No need for sed! :)

Kelly

]]>
By: Kelly Brazil https://www.tecmint.com/find-linux-server-geographic-location/comment-page-1/#comment-1274997 Thu, 24 Oct 2019 18:15:15 +0000 https://www.tecmint.com/?p=32646#comment-1274997 I created a command-line tool called jc that JSONifies the output of many common Linux CLI tools for piping into jq. No need to parse with sed/awk/grep/tr/cut/etc. :) For example:

$ ifconfig | jc --ifconfig | jq ...

https://github.com/kellyjonbrazil/jc

I’ll be adding more parsers to make life easier for cli jockeys!

]]>