Open a terminal and type: This will shutdown the computer immediately. The computer will shutdown at 4.05pm. The computer will shutdown 5 minutes from now. If you want it to restart instead of shutdown, use the “-r” flag instead. For example: Isn’t that easy?