how to shutdown a computer from the command line linux code example Example: shut down computer in terminal linux sudo poweroff