ubuntu shutdown code example Example 1: ubuntu auto shutdown sudo shutdown -h +60 Example 2: how to shut down ubuntu server command sudo poweroff