shutdown Ubuntu from the terminal code example Example: how to shut down ubuntu server command sudo poweroff