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



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


netstat -r -n




External IP Address: 

curl https://ipinfo.io/ip

Add comment