Shutdown and restart Ubuntu from terminal

1110370 pts.
Tags:
Ubuntu
I have Ubuntu and I have to shutdown my installed system and then restart it on the terminal. What's the process to do that? Thank you!

Answer Wiki

Thanks. We'll let you know when a new response is added.

Open your terminal and use these commands

To shutdown the system:

sudo shutdown -h now

command for restart:

sudo shutdown -r now


 

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • vimal1588
    Hi

    For shutdown:
    ->    sudo init 0

    For restart:
    ->    sudo init 6
    Thanks
    Vimal

    35 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: