If you are a complete terminal user, then this post might be very useful for you because in this article we are discussing how to shut down and restart your system using a terminal. The process which we are demonstrating here is so handy for Linux users who just loves to play with their keyboard while using terminal session.
Here, we cherry pick different scripts to shutdown, reboot, suspend and hibernate your system from which you can choose your option easily. Just have a glance at this article to know how to shutdown and restart your system using terminal in Ubuntu 14.04.
Steps to shutdown and restart your system using terminal:
Step 1: First open your terminal and then type: “sudo shutdown -h now” (This is the most basic script to shut down your system) and press enter. As soon as you type this script your system shutdown process gets initialized.
Step 2: Type your Ubuntu password when prompted as shown in the image below.
Step 3: If you want to stop the shutdown process at any point of time, then you can type “sudo halt”.
Step 4: There is another way to shutdown your system by default using the terminal, just type “sudo shutdown -P HH: MM”. In the same way, you can use “sudo shutdown -H, HH: MM” which is used to halt your system by default. (Note: Here ‘P’ represents power, “H” represents Halts and HH: MM represents the hour and minute, and it is mandatory to mention time in HH: MM format).
Step 5: Now, if you want to set some specific time for shut down say 5:30 PM then you can use “shutdown 17:30” ( Here the clock works at the 24hr time format).
Step 6: If you want to shut down your computer in some minutes, then you can use “shutdown +30” (Where ’30’ represents half an hour).
Step 7: At some point of time if you want to stop or cancel your shutdown timer, then type “sudo shutdown -c” (Where c stands for canceling).
Step 8: If you want to restart your system, then you can use “sudo shutdown -r”.
Step 9: You can also use “sudo reboot” to restart your system anytime.
Step 10: If you want to suspend the process, then type: “sudo pm-suspend”.
Step 11: Finally you can use the hibernate option just type “sudo pm-hibernate”.
That’s all friends. Keep reading.
Leave a Reply