![]() ![]() ssh have logged in as root user on the server_ip as specified in the command. Let us understand this syntax with an example. In the same command, I have specified to reboot the server using the /sbin/reboot command. Here I have used the ssh utility to log in as a root user into the remote server. Just connect to the remote system over ssh from the terminal on your local system. You can reboot a remote Linux system just as easily with the reboot command. Using reboot command on a remote Linux system Just typing this line on your terminal will immediately reboot your system. You can also use the following command to reboot your system. All the processes that are currently running on your system will be notified that the system is going down.Īfter the reboot command is issued, no further user-logins will be allowed by the system. To start using the reboot command, take a look at the following example to understand the implementation better.Īfter issuing the sudo reboot command, all the users will be informed that the system is being rebooted. The –wtmp-only option allows you to make an entry to the boot log file without actually shutting down or rebooting your system.Īll these options can be used with poweroff, halt and shutdown commands as well. Although this is a forced reboot, it results in the clean shutdown. ![]() The -f option forces the system for an immediate reboot. This option works in the same way with other commands shutdown, halt and poweroff. The -p option when used with the reboot command, will power off the machine. Only writes wtmp shutdown entry, does noit actually shutdown, or reboot the system You can customize the reboot command using the following options to better suit your need to reboot your system. Options available with the reboot command Just using the reboot command alone may not work for most users. Note: Make sure you use ‘ sudo‘ when using the reboot command. Reboot command fits best for your local computer as well as for the remote systems. These commands function in a similar way with some minor differences.įor the purpose of this page though, we’ll be using the reboot command only. Let us look at the various options of commands available with Linux.Īll the commands stated above can carry out different actions like shutting down a server, rebooting a system, or halting a system. It has various commands in its arsenal to cater all your rebooting needs. Well, be it shutting down your system forcefully or cleanly and safely rebooting your system, Linux has got you covered in all these situations. The command is easy to remember as the name itself is literally the function. Linux offers the reboot command to restart or reboot a system, even over a remote connection. Or, it could be the practical approach when new software is installed on the system and it demands a reboot. Rebooting is the go-to option that many of us rely on whenever things begin to act weirdly on a computer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |