From 30c416fc7b721c1bc1982f89d086d21a1a0bdf09 Mon Sep 17 00:00:00 2001 From: i12bretro <54692756+i12bretro@users.noreply.github.com> Date: Mon, 17 Jan 2022 19:50:40 -0500 Subject: [PATCH] 0381: Free Up Space on Linux by Deleting Unused Kernels --- 0381.html | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 0381.html diff --git a/0381.html b/0381.html new file mode 100644 index 0000000..ce7e27f --- /dev/null +++ b/0381.html @@ -0,0 +1,101 @@ + + + + Free Up Space on Linux by Deleting Unused Kernels + + + + + + +
+
+
+

Free Up Space on Linux by Deleting Unused Kernels

+
+
+
+
    +
  1. Log into the Linux device
  2. +
  3. Run the following commands in terminal +
    # output the current kernel version
    + uname -sr
    + # list all installed kernels
    + dpkg -l | grep linux-image | awk '{print$2}'
    + # delete kernels that are no longer in use
    + sudo apt remove linux-image-4.19.0-10-amd64 --purge
    + # update grub bootloader
    + sudo update-grub2
    + # reboot
    + sudo reboot now
    +
  4. +
+
+
+ + + \ No newline at end of file