Get Public IP using Linux Terminal
Command 1. Using wget
Command 2: Using curl
Command 3: Using wget
Command 4: Using curl
Command 5: Using curl
Get Public IP in Shell Script
We can simply use following commands in our shell script get our computers public ip and store them in a variable to use anywhere in shell script.