No operating system is perfect. Even if it was, there might be problems with drivers and apps. Linux is no exception. Despite being more stable than Windows (in many cases, not all!), there will probably come a time when you need to restart your Linux computer. This might be because something isn’t working. Alternatively, you might be connected via SSH to a remote computer or server and want it to restart or shut-down completely. But how might you do this? Several commands are available for you to power off or restart (or reboot) a Linux computer via the command line….
Read the full article: 5 Ways to Shut Down Your Linux Computer From the Command Line