DISABLE IPV6 ON LINUX

I bring this here just because I am tired of querying the same few lines every time I have to disable IPv6 in a Linux machine (as Einstein once said, why would you memorise something that you can look up). Run as root:
 


cat << EOF >> /etc/sysctl.conf

# Disable IPv6 on this system:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
EOF

# Apply changes by running:
sysctl -p