How do I restart my computer from terminal?

How do I restart my computer from terminal?
Answer
From an open command prompt window:
  1. type shutdown, followed by the option you wish to execute.
  2. To shut down your computer, type shutdown /s.
  3. To restart your computer, type shutdown /r.
  4. To log off your computer type shutdown /l.
  5. For a complete list of options type shutdown /?
  6. After typing your chosen option, press Enter.
 

Tìm kiếm

Back
Top