Whereami is a free and open source Geolocation application for Linux, Windows and MacOS. Using this command line application , you can get all Geo data info in your terminal application using freegeoip. It is written in JavaScript and released under MIT License.
How to install Whereami on Ubuntu
You can install the latest version of Whereami, using node package manager. First install npm in your system. Follow below link for the npm and mode installation instructions.
After the successful installation of npm, run below command in the terminal application. It will install the latest version of Whereami on your system.
npm install -g @rafaelrinaldi/whereami
After that run below commands, to view your geolocation data.
whereami
whereami -f human
whereami 2.151.255.255 -f human
For the complete Whereami usage details run below command.
whereami --help