Skip to content

Instantly share code, notes, and snippets.

@dbfin
Last active December 24, 2015 02:49
Show Gist options
  • Save dbfin/6733163 to your computer and use it in GitHub Desktop.
Save dbfin/6733163 to your computer and use it in GitHub Desktop.
List all available kernels
sudo cat /boot/grub2/grub.cfg | grep '^menuentry' | grep -v 'rescue' | sed "s|^\s*menuentry\s*['\"]\([^'\"]\+\)['\"].*$|\1|"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment