linux turn off pc from terminal code example Example: shut down computer in terminal linux sudo poweroff