Shut down or restart the system From the graphical interface it is very simple, but sometimes we may have to make use of other more powerful tools that give us more power or functionalities that we do not have in the graphical system. For example, you may need to shut down or schedule a restart after a certain period of time, because you have to leave home and leave your computer on, or for any other reason.
It may also happen that our work program got stuck and this has caused us to waste time waiting for the blockage to be resolved, if it is resolved, and the console can take the chestnuts out of the fire. Be that as it may, we are going to see a series of simple commands that can help us in our daily routine, adding an extra to what we have:
Turn off your computer immediately:
sudo shutdown -h now
Turn off your computer after 15 minutes, you can change the figure for whatever you want:
sudo shutdown -h +15
Turn off your computer at one hour, for example at 21:03:
sudo shutdown -h 21:03
Restart your computer immediately, you can use one of the two (if you want to add a temporary restart, you can put behind the hour or the time as we have done before with the automatic shutdown in the first command):
sudo shutdown -r now sudo reboot
A program has been blocked, To close it if it does not respond, you can use this command, a cross-shaped cursor will appear and the graphic window that you touch will be forcibly closed:
You use Ubuntu and your system has been totally blocked, you can't do anything ... I encourage you to use this key combination (hold down Print Screen + Alt and then type the others, it is not necessary to hold them all at the same time, only the first two):
I hope they have helped you, they are very basic commands, but many newcomers may not know them.