How To: Confirm Current Kernel Boot Command in Linux

Screen Shot 2019-01-20 at 22.40.22.pngFor those of you using GRUB boot loader, there’s a very cool way of confirming what boot parameters your boot loader supplied when booting your current OS instance:

greys@server:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.17.0-041700-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=1

This is super useful for verifying changes to such boot parameters, that you usually make in GRUB or another bootloader.

After making the changes and rebooting your OS, check the same file again, and it should show new parameters.

See Also