A union of curiosity and data science

Knowledgebase and brain dump of a database engineer


Ubuntu Shell - get your IP Address , Subnet Mask and Gateway

hostname -I

ifconfig 

 

if net-tools are installed. If not, install them. 

sudo apt install net-tools

 

ip a



Gateway IP and Subnet

ip r

Destination and Mask

route



netstat -r -n



 

 

 

External IP Address: 

curl https://ipinfo.io/ip








Add comment