commands.sh

kexec

linux

Directly reboot into a new kernel.

More info →

Options (3)

-l, --loadboolean

Load a new kernel

Example: kexec {{[-l|--load]}} {{path/to/kernel}} --initrd={{path/to/initrd}} --command-line={{arguments}}
-e, --execboolean

Execute a currently loaded kernel

Example: kexec {{[-e|--exec]}}
-u, --unloadboolean

Unload current kexec target kernel

Example: kexec {{[-u|--unload]}}

Examples (4)

Load a new kernel

kexec [-l|--load] path/to/kernel --initrd=path/to/initrd --command-line=arguments

Load a new kernel with current boot parameters

kexec [-l|--load] path/to/kernel --initrd=path/to/initrd --reuse-cmdline

Execute a currently loaded kernel

kexec [-e|--exec]

Unload current kexec target kernel

kexec [-u|--unload]
made by @shridhargupta | data from tldr-pages