LLI Wiki — My Digital Knowledge Base

Linux: show the kernel boot command-line parameters

Read /proc/cmdline to see the parameters the Linux kernel was booted with.

To see which parameters the Linux kernel was booted with (boot options passed by the bootloader), read a file from the /proc pseudo-filesystem.

cat /proc/cmdline

The command prints the command line of the running kernel (image to boot, root device, options such as quiet, ro, console=..., etc.).

The full list and the meaning of each parameter are described in the official kernel documentation.

Mastodon LLIMastodon SocialFosstodon