Skip to content

General Snippets

Disable Firewall Ubuntu

ufw disable

Disable IPv6 Persistent

Disable IPv6 using GRUB Perform the following steps with root privileges to disable IPv6 in Ubuntu 18.04/16.04 Permanently using grub method.



Modify GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT to append ipv6.disable=1:


Update the grub configuration:


Reboot the server

Remove Snap Store from Ubuntu

sudo rm -rf /var/cache/snapd/ 
sudo apt autoremove --purge snapd gnome-software-plugin-snap 
sudo rm -rf ~/snap

Remove cloud-init

apt-get purge cloud-init
rm -rf /etc/cloud/ && rm -rf /var/lib/cloud/

Clear BOOT Partition on Ubuntu when 100%

dpkg --purge `dpkg --list|grep "linux-"|grep -v \`uname -r|sed 's/-generic//g'\`|cut -d" " -f3|grep "[0-9]-"|paste -sd " " -`

Last update: September 2, 2021
Back to top