For example # shutdown -h +5 "Server is going down for upgrade. The time parameter can be specified in minutes or hours also. "now" means that shutdown the system right away. The second parameter is the time parameter. The h option is for halt which means to stop. To shutdown a machine call the shutdown command like this # shutdown -h now All logged-in users are notified that the system is going down and, within the last five minutes of TIME, new logins are prevented. shutdown arranges for the system to be brought down in a safe way. It is commonly used to shutdown or reboot both local and remote machines. The first command is the shutdown command and it can be used to shutdown a system or restart it. The commands are available on any linux system like centos, ubuntu, debian, fedora or suse and do not require the installation of any extra packages. Servers often need a restart when upgrades are installed or need to shutdown for other maintainance tasks. The commands are useful specially when you have to reboot a remote linux server, where only shell access is available and no gui. In this post I am going to show you how to shutdown or restart a linux system using these commands. The commands are shutdown, halt, poweroff, reboot and REISUB keystrokes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |