How to shutdown Lubuntu from command line

The cool things about linux is that you can do pretty much anything from the command line, including shutting down the computer. In this art... thumbnail 1 summary

The cool things about linux is that you can do pretty much anything from the command line, including shutting down the computer.

In this article i will show you how to shutdown lubuntu from the command line, and of course this also works on ubuntu.

In case you forget, remember that you can press CTRL + ALT + T on your keyboard to open terminal/console on lubuntu.

There are few commands that we can use to shutdown lubuntu from the command line, the first one is the shutdown command itself, like this:
sudo shutdown -h 
sudo shutdown -H
you can also put "now" as parameter, this will immediately shutdown the computer, like this:
sudo shutdown -h now 
sudo shutdown -H now
You can also use the halt command to turn off/shutdown your computer, like this:
sudo halt
Another command to turn off/shutdown computer is the init 0 command, like this:
sudo init 0
One more command that you can use to turn off/shutdown your computer is the poweroff command, just like this:
sudo poweroff
That's it now you know how to shutdown/turn off your computer from command line, noticed that every command should be run as root (sudo).



Không có nhận xét nào

Đăng nhận xét