Used to boot into a new kernel directly from the current system, without going through the full reboot process.
Explanation:
Loads the new kernel (vmlinuz-6.1.0) into memory.
Use sudo kexec -e to execute it immediately.
sudo kexec -l /boot/vmlinuz-6.1.0 --initrd=/boot/initrd.img-6.1.0 --command-line="root=/dev/sda1"