shut down pc linux terminal code example Example 1: shut down instantly on linux sudo shutdown now Example 2: shut down computer in terminal linux sudo poweroff