How to determine public IP in Linux commandline

As a system administrator you may need to determine public IP of your Linux server from time to time for troubleshotting purposes or other tasks. Here is how you can determine public IP from Linux command line:

Issue the command above and get public IP of your Linux server.

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [dot] com