Advertisement
v1ral_ITS

terminal show your PUBLIC ip addrss

Sep 5th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. # Show Your Public IP Saved To Home Filename        
  3. #+ <  ** ip **  >
  4.  
  5. # Define Command
  6. read my_ip < <(curl -s ipinfo.io/ip)
  7.  
  8. # Execute
  9. printf '\033[033mPublic IP: \033[m'
  10.         echo $my_ip
  11.  
  12. # Done
  13. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement