Questions tagged [reboot]

Questions related to restarting Ubuntu machines.

1109 questions
988
votes
5 answers

How do I shut down or reboot from a terminal?

How can I shut down or reboot Ubuntu using terminal commands?
Raja G
  • 105,327
  • 107
  • 262
  • 331
185
votes
6 answers

Should I always restart the system when I see "System restart required"?

These two nice SE posts (1, 2) comment on restarting one's ubuntu machine but they leave me with a few questions: How do you actually do the restart (I'm a beginner and using 12.04.1 LTS)? Should I always restart the system when prompted to? Does…
tim peterson
  • 2,345
141
votes
12 answers

Apache not able to restart

Trying to restart apache from terminal using the following command: sudo service apache2 restart When executing that command, I'm getting below error: Job for apache2.service failed. See "systemctl status apache2.service" and "journalctl -xe" for…
106
votes
9 answers

Ubuntu 16.04 hangs on shutdown/restart

My Ubuntu 16.04 hangs on shutdown/restart requiring me to press and hold the power key to turn the machine off... I don't know how to report this as a bug and what commands to run to show the necessary hardware/sys log info? Any help would be hugely…
Tdenham
  • 1,061
105
votes
5 answers

Reboot a Server from Command Line?

How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which always seems to work). I've had the problem for…
user207039
75
votes
5 answers

`sudo reboot` vs `reboot` - what is the difference?

I recently found out that reboot works just as well as sudo reboot, from what I can tell. However, in a lot of instances, I see people saying to sudo reboot. Why is this? Are they the same, and just personal preference? Or are they different? Does…
71
votes
6 answers

Alt + sysrq + REISUB doesn't reboot my laptop

On occasion, my laptop has become stuck so I've used the magic key combination of Alt + SysRq + REISUB to perform a safe reboot. However, it doesn't seem to work for me as when I press the B key to complete the magic key command it simply says,…
James White
  • 2,311
50
votes
3 answers

How can I make a specific set of iptables rules permanent?

Is there a "best practice" or standard to make a few iptables rules permanent? I mean: automatically applied upon a system reboot? I am using a VPS with Ubuntu Server 10.04 LTS (Lucid Lynx). Thank you. BIG EDIT: I don't want ANY rule to be persisted…
J. Bruni
  • 1,392
49
votes
5 answers

Do we need to reboot after adding a user to sudoers?

Do we need to reboot after adding a user to /etc/sudoers?
Ashish Karpe
  • 2,557
  • 3
  • 20
  • 24
46
votes
4 answers

How can I track the cause of random reboots?

A Thinkpad X220 (Core-i5, SandyBridge, Intel GMA) running Precise 64-bit has rebooted hard twice in the last four days. I was doing nothing more than writing an email. No warning. It just went black, and the next thing I saw was the Lenovo boot…
Andre
  • 2,071
42
votes
7 answers

How to reboot into Windows from Ubuntu?

I'm looking for a way to reboot into Windows from Ubuntu on a 10.10/Vista dual boot system. The specific use case is that I would like to be able to ssh into my running Ubuntu instance and issue a command that will initiate a reboot directly into…
41
votes
2 answers

Execute a script upon logout/reboot/shutdown in Ubuntu

I'd like to run a .sh file using bash on logout and shutdown of Ubuntu. I have searched up and down the web and have found only fixes for KDE and GNOME. The script is simple, I just need to know if I can add the line of code to the "logoff/shutdown"…
36
votes
5 answers

How to turn off the computer from the GRUB screen in dual boot

I have Ubuntu and Windows 10 with dual boot in a scratch computer (I'm too inexperienced to use anything else). The problem is, every time I try to shutdown from Ubuntu, the computer just reboots and loads the GRUB screen, so that means I can only…
J. Doe
  • 523
33
votes
3 answers

How can I safely shutdown/reboot/logout KDE from the command line?

I am not talking about shutdown and reboot commands. I want to initiate the same routine from command line that would be performed if I would press the logout/reboot/shutdown button inside the KDE desktop.
txwikinger
  • 29,406
32
votes
2 answers

How to disable Grub's menu from showing up after failed boot

I am performing a test in which I hard-reboot a machine with Ubuntu during its boot sequence (just before login prompt appears). After the reboot, GRUB's menu shows up with no timeout (not its rescue-mode, but the usual menu), as opposed to before…
borfig
  • 533
1
2 3
73 74