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