how to restart mac from terminal code example Example: terminal restart mac To restart your computer, type shutdown /r.