# Linux

# Resize existing disk

After resizing an EBS volume in AWS, going from 100G to 200G for e.g., the disk itself needs to be resize to make the additional spaces usuable

resize2fs /dev/sdb1

Verify disk on machine

lsblk
df -h

## Public IP

# Option 1
dig +short myip.opendns.com @resolver1.opendns.com

# Option 2
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com

# Option 3
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'

# Option 4
host myip.opendns.com resolver1.opendns.com

# Option 5 from AWS Instance
curl http://checkip.amazonaws.com/