sudo needs-restarting -r

Category: VPS Management

sudo needs-restarting -r

Check whether a reboot is required to apply installed updates (RHEL/CentOS)

On RHEL-based systems, this checks if the running kernel matches the installed kernel. Not available on Ubuntu — check /var/run/reboot-required instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.