/proc/cmdline

/proc/cmdline

Question

SUMULATION -

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Explanations

cmdline -or- /proc/cmdline

The /proc filesystem is a virtual filesystem in Linux that provides information about the system's hardware, processes, and other system information. The information in the /proc filesystem is stored in virtual files, which can be read like any other file.

When a Linux system boots up, the bootloader loads the kernel into memory and passes parameters to the kernel. These parameters can affect how the kernel initializes and configures the system. The kernel reads these parameters from a file in the /proc filesystem called "cmdline".

The "cmdline" file in the /proc filesystem contains the command-line arguments passed to the kernel by the bootloader. These arguments can include options such as the root filesystem, the console device, and other kernel parameters.

To view the contents of the "cmdline" file, you can use the cat command:

bash
cat /proc/cmdline

This will display the parameters passed to the kernel from the bootloader.

In summary, the file in the /proc filesystem that lists parameters passed from the bootloader to the kernel is "cmdline".