Computer Science, asked by Gamla13, 10 months ago

Can any of you tell how to Reboot the computer using the terminal?

Answers

Answered by meghatripathi077
1

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.
Answered by pranay9018
1

Answer:

follow these steps

Explanation:

To access the command prompt window from Windows 8 or 10:

Go to the Start menu

Type cmd in the Search field

Press Enter

From an open command prompt window:

type shutdown, followed by the option you wish to execute.  

To shut down your computer, type shutdown /s

To restart your computer, type shutdown /r

To log off your computer type shutdown /l

For a complete list of options type shutdown /?

After typing your chosen option, press Enter. The computer will execute your desired task.

o restart a computer now or at a specific time using Terminal, you can use the shutdown command or the systemsetup command. The following examples show some ways to use these commands, but for complete information about them, see the shutdown command man page and the systemsetup command man page.

Restart the local computer

In the Terminal app  on your Mac, enter the following command:

% sudo shutdown -r now

Restart a remote computer immediately

In the Terminal app  on your Mac, enter the following commands:

% ssh -l admincomputer

% sudo shutdown -r now

Replace admin with the short name of a user account on the remote computer.

Replace computer with the IP address or host name of the remote computer.

Restart a remote computer at a specific time

In the Terminal app  on your Mac, enter the following commands:

% ssh -l admin computer

% sudo shutdown -r hhmm

Replace admin with the short name of a user account on the remote computer.

Replace computer with the IP address or host name of the remote computer.

Replace hhmm with the hour and minute you want the remote computer to restart.

Restart automatically after power failure

In the Terminal app  on your Mac, enter the following command:

% sudo systemsetup -setwaitforstartupafterpowerfailure seconds

Replace seconds with the number of seconds before the computer starts after a power failure. This value must be 0 (zero) or a multiple of 30.

Note: You can also use Energy Saver preferences to set a Mac to restart automatically after a power failure.

Similar questions