- Linux restart nomachine server from commandline how to#
- Linux restart nomachine server from commandline manual#
The command below, for example, schedules the server to reboot in 15 minutes. For the time option, the shutdown command accepts either several minutes or a local time in 24-hour format. You can safely use the above command and alter the time ( now) to schedule when your Linux server restarts. The complete command is as follows: sudo shutdown -r now The reboot command accomplishes the same system state as the shutdown command with the -r option and a schedule of now.
Linux restart nomachine server from commandline how to#
How to Schedule a Restart on a Linux Server with the shutdown Command This option forces a reboot without allowing the usual clean up tasks, which can lead to loss and/or corruption of data. However, this should only be used when no other option is available. If you need to force a reboot, you can do so with the -force option. This command starts a graceful shutdown, letting processes exit, temporary files are removed, and other system clean up tasks. The most straightforward way to restart your Linux server is with the reboot command. How to Restart a Linux Server with the reboot Command These commands work whether you are connected directly to your server’s console or are connecting to it over SSH.
In this section, you learn how to reboot your Linux server using the command line. How Do I Restart a Linux Server from the Command Line? There are also many administrative processes that require restarting the server for changes to take effect.įor those cases and others, it is helpful to know the available commands to quickly initiate a graceful system reboot.
Linux restart nomachine server from commandline manual#
Some software installations require a manual reboot after installation, and some applications benefit from the system being periodically rebooted. However, several factors may make you want to restart your server. It should be able to keep running for weeks or months, without needing to be “refreshed” with a reboot. Generally, you do not need to regularly restart your Linux server. When Do I Need to Restart a Linux Server? This guide shows you how to restart a Linux server over SSH, using PuTTY, or on your server’s console interface. While your Linux server can run continuously for weeks or months, some configuration tasks may require a manual system reboot.