Introduction

GRUB's menuentries are basically operating systems that are configured in your bootloader to be loaded. 

 

Procedure

You can list these operating system(s) with the following command: 

 

FILE=`find /etc/ /boot/ -type f -name "grub.cfg"`; awk -F\' '/^menuentry / {print $2}' $FILE|cat -n|awk '{print $1-1,$1="",$0}'


The result would look like this: 

 

 FILE=`find /etc/ /boot/ -type f -name "grub.cfg"`; awk -F\' '/^menuentry / {print $2}' $FILE|cat -n|awk '{print $1-1,$1="",$0}'

0 CloudLinux 7.9 Rescue (3.10.0-962.3.2.lve1.5.42.el7.x86_64)
1 CentOS Linux (3.10.0-1127.19.1.el7.x86_64) 7 (Core)
2 CentOS Linux (3.10.0-957.1.3.el7.x86_64) 7 (Core)
3 CentOS Linux 7 (Core)