How do I check the current boot parameter list in Linux?

28

4

During test, I sometimes add/change boot parameters to /boot/grub/menu.lst (suse), or at the grub screen during boot.

How do I check what boot parameters have been used after the system is done booting?

peonicles

Posted 2012-08-06T09:07:54.407

Reputation: 455

check this http://www.cyberciti.biz/tips/10-boot-time-parameters-you-should-know-about-the-linux-kernel.html it may be helpfull

– BlueBerry - Vignesh4303 – 2012-08-06T09:09:24.963

2The "kernel command line" which contains those "boot parameters" should be in the system log, accessible with the dmesg command. A copy of the kernel command line is also in /proc/cmdline. – sawdust – 2012-08-06T09:43:02.800

@sawdust, cat /proc/cmdline did the trick. – peonicles – 2012-08-06T10:05:09.193

Answers

38

The bootloader (grub in this case) will pass the boot parameters to the Linux kernel in a memory buffer called the kernel command line. The kernel command line, along with other console messages output during boot, should be in the system log, retrievable with the dmesg command.

A copy of the kernel command line is also in the file /proc/cmdline.

sawdust

Posted 2012-08-06T09:07:54.407

Reputation: 14 697