HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lsinitrd — Show the contents of an initramfs image. See also: `dracut`. More information: <https://github.com/d

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandcontentsshowlsinitrdcliimageinitramfs
linux

Problem

How to use the lsinitrd command: Show the contents of an initramfs image. See also: dracut. More information: <https://github.com/dracutdevs/dracut/blob/master/man/lsinitrd.1.asc>.

Solution

lsinitrd — Show the contents of an initramfs image. See also: dracut. More information: <https://github.com/dracutdevs/dracut/blob/master/man/lsinitrd.1.asc>.

Show the contents of the initramfs image for the current kernel:
lsinitrd


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

Code Snippets

Show the contents of the initramfs image for the current kernel

lsinitrd

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

Context

tldr-pages: linux/lsinitrd

Revisions (0)

No revisions yet.