Linux command
lsinitrd 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Example
lsinitrd
Example
lsinitrd --kver [kernel_version]
Example
lsinitrd [path/to/initramfs.img]
Example
lsinitrd --mod
Unpack
lsinitrd --unpack
说明
lsinitrd displays the contents of an initramfs (initial RAM filesystem) image. It lists files, modules, and drivers included in the image, which is essential for troubleshooting boot issues.
参数
- -k, --kver VERSION
- Show initramfs for specified kernel version
- -m, --mod
- List included kernel modules
- --unpack
- Extract initramfs contents to current directory
- -f, --file FILE
- Show contents of specific file in image
- -l, --list
- List files in initramfs
FAQ
What is the lsinitrd command used for?
lsinitrd displays the contents of an initramfs (initial RAM filesystem) image. It lists files, modules, and drivers included in the image, which is essential for troubleshooting boot issues.
How do I run a basic lsinitrd example?
Run `lsinitrd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -k, --kver VERSION do in lsinitrd?
Show initramfs for specified kernel version