Linux Kernel Command Line – How to Display Parameters for Current Boot

linuxlinux-kernel

In the grub.conf configuration file I can specify command line parameters that the kernel will use, i.e.:

kernel /boot/kernel-3-2-1-gentoo root=/dev/sda1 vga=791

After booting a given kernel, is there a way to display the command line parameters that were passed to the kernel in the first place? I've found sysctl,

sysctl --all

but sysctl shows up all possible kernel parameters.

Best Answer

$ cat /proc/cmdline
root=/dev/xvda xencons=tty console=tty1 console=hvc0 nosep nodevfs ramdisk_size=32768 ip_conntrack.hashsize=8192 nf_conntrack.hashsize=8192 ro  devtmpfs.mount=1 
$
Related Question