shut down pc by using command line in ubuntu code example Example: how to shut down ubuntu server command sudo poweroff