Whenever i use a command like
shutdown -s -f -t 00
I can see that the shutdown occurs faster than when I go and click the shutdown button in the Windows GUI.
This scenario can be compared with my other OS, i.e. Ubuntu as well. In ubuntu terminal, if I enter the following command for shutdown, the process occurs quite faster and never failed to my knowledge. But if I use the shutdown button in the GUI, the system sometimes hangs and its process takes longer to execute.
sudo init 0
I can sense that the terminals and the command prompt works directly on the kernel. But I am curious to know whether there are any other technical stuff going on behind this.