Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go


20190821 After an upgrade there may be times when a reboot is required (such as when the kernel is upgraded). We can check if a reboot is required by checking for the file /var/run/reboot-required. If it exists then the computer requires a reboot and the contents of the file may explain why. A useful command to include in an initialisation file (e.g., .bashrc) is:

$ if [ -e /var/run/reboot-required ]; then 
    cat /var/run/reboot-required
    echo "Reboot not required."

To reboot a computer usually requires admin privileges:

  $ sudo reboot

Copyright © 1995-2020 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Graham Williams is the developer of open source software including rattle and wajig.
He is the author of Data Mining with Rattle and Essentials of Data Science.
This web site is hosted by Togaware, free and open source software since 1984.