How do I know if Linux needs reboot?

Đạt Michio

New member
How do I know if Linux needs reboot?
Answer
The system needs a reboot if the file /var/run/reboot-required exists and can be checked as follows:
  1. #!/bin/bash if [ -f /var/run/reboot-required ]; then echo ‘reboot required’ fi.
  2. sudo apt install needrestart.
  3. sudo needrestart -r i.
  4. sudo zypper ps.
 

Tìm kiếm

Back
Top