A Simple Linux Shell Script To Display Public IP Of PC

using nano text editor to make linux shell scripts
Linux shell scripts are useful for a lot of tasks. A brief tutorial on them can be found here. Here is a very simple shell script that on executing will display the public IP address of PC. Using any text editor (nano in this example), make the script as follows : #!/bin/bash echo "The Public IP for this system is : " curl -s icanhazip.com What this script does is simply fetch the public...