sudo grep -n 'Automatic-Reboot' /etc/apt/apt.conf.d/50unattended-upgrades

Category: VPS Management

sudo grep -n 'Automatic-Reboot' /etc/apt/apt.conf.d/50unattended-upgrades

Find the auto-reboot settings in the config

grep -n prints matching lines with their line numbers so you can jump straight to the Automatic-Reboot options (which control whether the server reboots itself after kernel updates) in the 50unattended-upgrades config file. Most lines there ship commented out — uncomment and set to true only if you accept unattended reboots. The line numbers make the follow-up edit trivial.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.