mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 21:55:01 +00:00
Update cheatsheets
This commit is contained in:
@@ -12,30 +12,30 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`mkinitcpio`
|
||||
|
||||
- Generate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in `/etc/mkinitcpio.conf`):
|
||||
|
||||
`sudo mkinitcpio {{[-P|--allpresets]}}`
|
||||
|
||||
- Generate a ramdisk environment based on the `linux` preset:
|
||||
|
||||
`mkinitcpio --preset {{linux}}`
|
||||
`sudo mkinitcpio {{[-p|--preset]}} {{linux}}`
|
||||
|
||||
- Generate a ramdisk environment based on the `linux-lts` preset:
|
||||
|
||||
`mkinitcpio --preset {{linux-lts}}`
|
||||
|
||||
- Generate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in `/etc/mkinitcpio.conf`):
|
||||
|
||||
`mkinitcpio --allpresets`
|
||||
`sudo mkinitcpio {{[-p|--preset]}} {{linux-lts}}`
|
||||
|
||||
- Generate an initramfs image using an alternative configuration file:
|
||||
|
||||
`mkinitcpio --config {{path/to/mkinitcpio.conf}} --generate {{path/to/initramfs.img}}`
|
||||
`sudo mkinitcpio {{[-c|--config]}} {{path/to/mkinitcpio.conf}} {{[-g|--generate]}} {{path/to/initramfs.img}}`
|
||||
|
||||
- Generate an initramfs image for a kernel other than the one currently running (the installed kernel releases can be found in `/usr/lib/modules/`):
|
||||
|
||||
`mkinitcpio --kernel {{kernel_version}} --generate {{path/to/initramfs.img}}`
|
||||
`sudo mkinitcpio {{[-k|--kernel]}} {{kernel_version}} {{[-g|--generate]}} {{path/to/initramfs.img}}`
|
||||
|
||||
- List all available hooks:
|
||||
|
||||
`mkinitcpio --listhooks`
|
||||
`mkinitcpio {{[-L|--listhooks]}}`
|
||||
|
||||
- Display help for a specific hook:
|
||||
|
||||
`mkinitcpio --hookhelp {{hook_name}}`
|
||||
`mkinitcpio {{[-H|--hookhelp]}} {{hook_name}}`
|
||||
|
||||
Reference in New Issue
Block a user