Restart Ubuntu via keyboard











up vote
4
down vote

favorite












In win7, when I want to restart computer via keyboard until my operating system hasn't been loaded yet, I press Ctrl+Alt+Del.



What is equivalent to this command in Ubuntu?



(Note that I'm not asking for Task manager).



I wish to restart it if, for example, I pressed F10 but BIOS didn't load successfully so I have to reboot it. I really don't like brute way (using physical shutdown button).










share|improve this question
























  • Do you want to do this as a rescue operation because the mouse does not work, or because you want a convenient way to reboot? Or for some other reason (please specify)?
    – sudodus
    Jan 12 at 19:13






  • 1




    To slightly improve upon the not-exactly-perfect-but-still-hopefully-useful workaround of using the terminal, with recent versions of Ubuntu which use systemd (16.04 or possibly earlier), you don't need sudo — just shutdown -r now will work. (The -r flag means restart, and now specifies the time.) Depending on which desktop environment you use (Unity, GNOME, XFCE?) you can specify a custom hotkey, for this command.
    – aplaice
    Jan 12 at 19:15








  • 1




    @aplaice reboot is shorter
    – Rinzwind
    Jan 12 at 19:30






  • 2




    Responding to your edited original question: I suggest the 'SysRq REISUB' method to get a soft reboot. SysRq is often on the PrintScreen key: Press Alt + PrintScreen all the time, and then slowly (one key after another) the letter keys R E I S U B. See this link, en.wikipedia.org/wiki/Magic_SysRq_key ; and this link, askubuntu.com/questions/968024/…
    – sudodus
    Jan 12 at 19:37






  • 2




    in KDE, Mate and Cinnamon desktops, Ctrl+Alt+Del will bring up the shut down menu when you can choose to log off, restart or shutdown.
    – ravery
    Jan 12 at 20:15















up vote
4
down vote

favorite












In win7, when I want to restart computer via keyboard until my operating system hasn't been loaded yet, I press Ctrl+Alt+Del.



What is equivalent to this command in Ubuntu?



(Note that I'm not asking for Task manager).



I wish to restart it if, for example, I pressed F10 but BIOS didn't load successfully so I have to reboot it. I really don't like brute way (using physical shutdown button).










share|improve this question
























  • Do you want to do this as a rescue operation because the mouse does not work, or because you want a convenient way to reboot? Or for some other reason (please specify)?
    – sudodus
    Jan 12 at 19:13






  • 1




    To slightly improve upon the not-exactly-perfect-but-still-hopefully-useful workaround of using the terminal, with recent versions of Ubuntu which use systemd (16.04 or possibly earlier), you don't need sudo — just shutdown -r now will work. (The -r flag means restart, and now specifies the time.) Depending on which desktop environment you use (Unity, GNOME, XFCE?) you can specify a custom hotkey, for this command.
    – aplaice
    Jan 12 at 19:15








  • 1




    @aplaice reboot is shorter
    – Rinzwind
    Jan 12 at 19:30






  • 2




    Responding to your edited original question: I suggest the 'SysRq REISUB' method to get a soft reboot. SysRq is often on the PrintScreen key: Press Alt + PrintScreen all the time, and then slowly (one key after another) the letter keys R E I S U B. See this link, en.wikipedia.org/wiki/Magic_SysRq_key ; and this link, askubuntu.com/questions/968024/…
    – sudodus
    Jan 12 at 19:37






  • 2




    in KDE, Mate and Cinnamon desktops, Ctrl+Alt+Del will bring up the shut down menu when you can choose to log off, restart or shutdown.
    – ravery
    Jan 12 at 20:15













up vote
4
down vote

favorite









up vote
4
down vote

favorite











In win7, when I want to restart computer via keyboard until my operating system hasn't been loaded yet, I press Ctrl+Alt+Del.



What is equivalent to this command in Ubuntu?



(Note that I'm not asking for Task manager).



I wish to restart it if, for example, I pressed F10 but BIOS didn't load successfully so I have to reboot it. I really don't like brute way (using physical shutdown button).










share|improve this question















In win7, when I want to restart computer via keyboard until my operating system hasn't been loaded yet, I press Ctrl+Alt+Del.



What is equivalent to this command in Ubuntu?



(Note that I'm not asking for Task manager).



I wish to restart it if, for example, I pressed F10 but BIOS didn't load successfully so I have to reboot it. I really don't like brute way (using physical shutdown button).







shortcuts






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 18 at 12:46









WinEunuuchs2Unix

41k1069153




41k1069153










asked Jan 12 at 18:57









mk1024

159313




159313












  • Do you want to do this as a rescue operation because the mouse does not work, or because you want a convenient way to reboot? Or for some other reason (please specify)?
    – sudodus
    Jan 12 at 19:13






  • 1




    To slightly improve upon the not-exactly-perfect-but-still-hopefully-useful workaround of using the terminal, with recent versions of Ubuntu which use systemd (16.04 or possibly earlier), you don't need sudo — just shutdown -r now will work. (The -r flag means restart, and now specifies the time.) Depending on which desktop environment you use (Unity, GNOME, XFCE?) you can specify a custom hotkey, for this command.
    – aplaice
    Jan 12 at 19:15








  • 1




    @aplaice reboot is shorter
    – Rinzwind
    Jan 12 at 19:30






  • 2




    Responding to your edited original question: I suggest the 'SysRq REISUB' method to get a soft reboot. SysRq is often on the PrintScreen key: Press Alt + PrintScreen all the time, and then slowly (one key after another) the letter keys R E I S U B. See this link, en.wikipedia.org/wiki/Magic_SysRq_key ; and this link, askubuntu.com/questions/968024/…
    – sudodus
    Jan 12 at 19:37






  • 2




    in KDE, Mate and Cinnamon desktops, Ctrl+Alt+Del will bring up the shut down menu when you can choose to log off, restart or shutdown.
    – ravery
    Jan 12 at 20:15


















  • Do you want to do this as a rescue operation because the mouse does not work, or because you want a convenient way to reboot? Or for some other reason (please specify)?
    – sudodus
    Jan 12 at 19:13






  • 1




    To slightly improve upon the not-exactly-perfect-but-still-hopefully-useful workaround of using the terminal, with recent versions of Ubuntu which use systemd (16.04 or possibly earlier), you don't need sudo — just shutdown -r now will work. (The -r flag means restart, and now specifies the time.) Depending on which desktop environment you use (Unity, GNOME, XFCE?) you can specify a custom hotkey, for this command.
    – aplaice
    Jan 12 at 19:15








  • 1




    @aplaice reboot is shorter
    – Rinzwind
    Jan 12 at 19:30






  • 2




    Responding to your edited original question: I suggest the 'SysRq REISUB' method to get a soft reboot. SysRq is often on the PrintScreen key: Press Alt + PrintScreen all the time, and then slowly (one key after another) the letter keys R E I S U B. See this link, en.wikipedia.org/wiki/Magic_SysRq_key ; and this link, askubuntu.com/questions/968024/…
    – sudodus
    Jan 12 at 19:37






  • 2




    in KDE, Mate and Cinnamon desktops, Ctrl+Alt+Del will bring up the shut down menu when you can choose to log off, restart or shutdown.
    – ravery
    Jan 12 at 20:15
















Do you want to do this as a rescue operation because the mouse does not work, or because you want a convenient way to reboot? Or for some other reason (please specify)?
– sudodus
Jan 12 at 19:13




Do you want to do this as a rescue operation because the mouse does not work, or because you want a convenient way to reboot? Or for some other reason (please specify)?
– sudodus
Jan 12 at 19:13




1




1




To slightly improve upon the not-exactly-perfect-but-still-hopefully-useful workaround of using the terminal, with recent versions of Ubuntu which use systemd (16.04 or possibly earlier), you don't need sudo — just shutdown -r now will work. (The -r flag means restart, and now specifies the time.) Depending on which desktop environment you use (Unity, GNOME, XFCE?) you can specify a custom hotkey, for this command.
– aplaice
Jan 12 at 19:15






To slightly improve upon the not-exactly-perfect-but-still-hopefully-useful workaround of using the terminal, with recent versions of Ubuntu which use systemd (16.04 or possibly earlier), you don't need sudo — just shutdown -r now will work. (The -r flag means restart, and now specifies the time.) Depending on which desktop environment you use (Unity, GNOME, XFCE?) you can specify a custom hotkey, for this command.
– aplaice
Jan 12 at 19:15






1




1




@aplaice reboot is shorter
– Rinzwind
Jan 12 at 19:30




@aplaice reboot is shorter
– Rinzwind
Jan 12 at 19:30




2




2




Responding to your edited original question: I suggest the 'SysRq REISUB' method to get a soft reboot. SysRq is often on the PrintScreen key: Press Alt + PrintScreen all the time, and then slowly (one key after another) the letter keys R E I S U B. See this link, en.wikipedia.org/wiki/Magic_SysRq_key ; and this link, askubuntu.com/questions/968024/…
– sudodus
Jan 12 at 19:37




Responding to your edited original question: I suggest the 'SysRq REISUB' method to get a soft reboot. SysRq is often on the PrintScreen key: Press Alt + PrintScreen all the time, and then slowly (one key after another) the letter keys R E I S U B. See this link, en.wikipedia.org/wiki/Magic_SysRq_key ; and this link, askubuntu.com/questions/968024/…
– sudodus
Jan 12 at 19:37




2




2




in KDE, Mate and Cinnamon desktops, Ctrl+Alt+Del will bring up the shut down menu when you can choose to log off, restart or shutdown.
– ravery
Jan 12 at 20:15




in KDE, Mate and Cinnamon desktops, Ctrl+Alt+Del will bring up the shut down menu when you can choose to log off, restart or shutdown.
– ravery
Jan 12 at 20:15










1 Answer
1






active

oldest

votes

















up vote
4
down vote













SysRq REISUB



Responding to your edited original question: I suggest the 'SysRq REISUB' method. This is a way to reboot linux systems gracefully, that often works to keep the file system healthy (in contrast to hard poweroff).



SysRq is often on the PrintScreen key:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U B to reboot.



When you press the 'letter keys' you need not specify caps lock or shift.





The corresponding sequence to shut down the computer gracefully is:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U O to shut down.



B 'Boot' is replaced by O 'Off'.





You find more details at the following links,



en.wikipedia.org/wiki/Magic_SysRq_key



How to call up high priority responsive terminal window, even if Xubuntu is hopelessly frozen






share|improve this answer



















  • 3




    REISSUB= Reboot Even If System Utterly Broken. Might be useful to specify caps lock not necessary.
    – WinEunuuchs2Unix
    Jan 18 at 12:50












  • @WinEunuuchs2Unix, Thanks :-)
    – sudodus
    Jan 18 at 14:55






  • 1




    @pa4080, Thanks for finding and fixing the 'left over from my copy-paste' :-)
    – sudodus
    Mar 13 at 8:19










  • I've just tried this - it's working like a charm.
    – pa4080
    Mar 13 at 8:27











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f995286%2frestart-ubuntu-via-keyboard%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote













SysRq REISUB



Responding to your edited original question: I suggest the 'SysRq REISUB' method. This is a way to reboot linux systems gracefully, that often works to keep the file system healthy (in contrast to hard poweroff).



SysRq is often on the PrintScreen key:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U B to reboot.



When you press the 'letter keys' you need not specify caps lock or shift.





The corresponding sequence to shut down the computer gracefully is:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U O to shut down.



B 'Boot' is replaced by O 'Off'.





You find more details at the following links,



en.wikipedia.org/wiki/Magic_SysRq_key



How to call up high priority responsive terminal window, even if Xubuntu is hopelessly frozen






share|improve this answer



















  • 3




    REISSUB= Reboot Even If System Utterly Broken. Might be useful to specify caps lock not necessary.
    – WinEunuuchs2Unix
    Jan 18 at 12:50












  • @WinEunuuchs2Unix, Thanks :-)
    – sudodus
    Jan 18 at 14:55






  • 1




    @pa4080, Thanks for finding and fixing the 'left over from my copy-paste' :-)
    – sudodus
    Mar 13 at 8:19










  • I've just tried this - it's working like a charm.
    – pa4080
    Mar 13 at 8:27















up vote
4
down vote













SysRq REISUB



Responding to your edited original question: I suggest the 'SysRq REISUB' method. This is a way to reboot linux systems gracefully, that often works to keep the file system healthy (in contrast to hard poweroff).



SysRq is often on the PrintScreen key:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U B to reboot.



When you press the 'letter keys' you need not specify caps lock or shift.





The corresponding sequence to shut down the computer gracefully is:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U O to shut down.



B 'Boot' is replaced by O 'Off'.





You find more details at the following links,



en.wikipedia.org/wiki/Magic_SysRq_key



How to call up high priority responsive terminal window, even if Xubuntu is hopelessly frozen






share|improve this answer



















  • 3




    REISSUB= Reboot Even If System Utterly Broken. Might be useful to specify caps lock not necessary.
    – WinEunuuchs2Unix
    Jan 18 at 12:50












  • @WinEunuuchs2Unix, Thanks :-)
    – sudodus
    Jan 18 at 14:55






  • 1




    @pa4080, Thanks for finding and fixing the 'left over from my copy-paste' :-)
    – sudodus
    Mar 13 at 8:19










  • I've just tried this - it's working like a charm.
    – pa4080
    Mar 13 at 8:27













up vote
4
down vote










up vote
4
down vote









SysRq REISUB



Responding to your edited original question: I suggest the 'SysRq REISUB' method. This is a way to reboot linux systems gracefully, that often works to keep the file system healthy (in contrast to hard poweroff).



SysRq is often on the PrintScreen key:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U B to reboot.



When you press the 'letter keys' you need not specify caps lock or shift.





The corresponding sequence to shut down the computer gracefully is:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U O to shut down.



B 'Boot' is replaced by O 'Off'.





You find more details at the following links,



en.wikipedia.org/wiki/Magic_SysRq_key



How to call up high priority responsive terminal window, even if Xubuntu is hopelessly frozen






share|improve this answer














SysRq REISUB



Responding to your edited original question: I suggest the 'SysRq REISUB' method. This is a way to reboot linux systems gracefully, that often works to keep the file system healthy (in contrast to hard poweroff).



SysRq is often on the PrintScreen key:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U B to reboot.



When you press the 'letter keys' you need not specify caps lock or shift.





The corresponding sequence to shut down the computer gracefully is:



Press Alt + PrintScreen continuously, sometimes the Fn key is involved too (in laptops),



and then slowly (one key after another) the keys R E I S U O to shut down.



B 'Boot' is replaced by O 'Off'.





You find more details at the following links,



en.wikipedia.org/wiki/Magic_SysRq_key



How to call up high priority responsive terminal window, even if Xubuntu is hopelessly frozen







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 13 at 8:15









pa4080

13.2k52461




13.2k52461










answered Jan 18 at 6:46









sudodus

22.1k32871




22.1k32871








  • 3




    REISSUB= Reboot Even If System Utterly Broken. Might be useful to specify caps lock not necessary.
    – WinEunuuchs2Unix
    Jan 18 at 12:50












  • @WinEunuuchs2Unix, Thanks :-)
    – sudodus
    Jan 18 at 14:55






  • 1




    @pa4080, Thanks for finding and fixing the 'left over from my copy-paste' :-)
    – sudodus
    Mar 13 at 8:19










  • I've just tried this - it's working like a charm.
    – pa4080
    Mar 13 at 8:27














  • 3




    REISSUB= Reboot Even If System Utterly Broken. Might be useful to specify caps lock not necessary.
    – WinEunuuchs2Unix
    Jan 18 at 12:50












  • @WinEunuuchs2Unix, Thanks :-)
    – sudodus
    Jan 18 at 14:55






  • 1




    @pa4080, Thanks for finding and fixing the 'left over from my copy-paste' :-)
    – sudodus
    Mar 13 at 8:19










  • I've just tried this - it's working like a charm.
    – pa4080
    Mar 13 at 8:27








3




3




REISSUB= Reboot Even If System Utterly Broken. Might be useful to specify caps lock not necessary.
– WinEunuuchs2Unix
Jan 18 at 12:50






REISSUB= Reboot Even If System Utterly Broken. Might be useful to specify caps lock not necessary.
– WinEunuuchs2Unix
Jan 18 at 12:50














@WinEunuuchs2Unix, Thanks :-)
– sudodus
Jan 18 at 14:55




@WinEunuuchs2Unix, Thanks :-)
– sudodus
Jan 18 at 14:55




1




1




@pa4080, Thanks for finding and fixing the 'left over from my copy-paste' :-)
– sudodus
Mar 13 at 8:19




@pa4080, Thanks for finding and fixing the 'left over from my copy-paste' :-)
– sudodus
Mar 13 at 8:19












I've just tried this - it's working like a charm.
– pa4080
Mar 13 at 8:27




I've just tried this - it's working like a charm.
– pa4080
Mar 13 at 8:27


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f995286%2frestart-ubuntu-via-keyboard%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?