commands.sh

lsinitrd

linux

Show the contents of an initramfs image. See also: `dracut`.

More info →

Options (2)

-k, --kverboolean

Show the contents of the initramfs image for the specified kernel

Example: lsinitrd {{[-k|--kver]}} {{kernel_version}}
-m, --modboolean

List modules included in the initramfs image

Example: lsinitrd {{[-m|--mod]}}

Examples (5)

Show the contents of the initramfs image for the current kernel

Show the contents of the initramfs image for the specified kernel

lsinitrd [-k|--kver] kernel_version

Show the contents of the specified initramfs image

lsinitrd path/to/initramfs.img

List modules included in the initramfs image

lsinitrd [-m|--mod]

Unpack the initramfs to the current directory

lsinitrd --unpack
made by @shridhargupta | data from tldr-pages