Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash find public ip

# Print my public IP
dig +short myip.opendns.com @resolver1.opendns.com
# Output
77.122.128.246

# Store IP in Bash Variable
myip="$(dig +short myip.opendns.com @resolver1.opendns.com)"
Comment

PREVIOUS NEXT
Code Example
Shell :: remove last commit from remote 
Shell :: check if string starts with powershell 
Shell :: add text to clipboard wsl 
Shell :: install rdp ubuntu 
Shell :: latex number listing as equation 
Shell :: add folders to gitignore 
Shell :: npm colors 
Shell :: awk if 
Shell :: how to install kite on manjero 
Shell :: uninstall 
Shell :: tar extract command windows 
Shell :: store environment variables firebase functions 
Shell :: Meaning of the GitHub message: push declined due to email privacy restrictions 
Shell :: github setup local 
Shell :: vmware shared folder not showing 
Shell :: git diff 
Shell :: how to clone all git repositories 
Shell :: atom vs sublime 
Shell :: Adding more changes to your last commit 
Shell :: fetch a specific branch 
Shell :: get logs from application isntaller 
Shell :: mac format drive for windows 
Shell :: install wordpress linux 
Shell :: aws cli parse secretstring 
Shell :: linux alpine install multi package 
Shell :: libsound2-dev missing 
Shell :: mjml watch command 
Shell :: ufw enable no disturb 
Shell :: linux microcore static ip 
Shell :: reart admin 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =