Đạ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:
Answer
The system needs a reboot if the file /var/run/reboot-required exists and can be checked as follows:
- #!/bin/bash if [ -f /var/run/reboot-required ]; then echo ‘reboot required’ fi.
- sudo apt install needrestart.
- sudo needrestart -r i.
- sudo zypper ps.