Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

These two nice SE posts (1, 2) comment on restarting one's ubuntu machine but they leave me with a few questions:

  1. How do you actually do the restart (I'm a beginner and using 12.04.1 LTS)?
  2. Should I always restart the system when prompted to?
  3. Does restarting the system affect access to it via SSH or there any other caveats one needs to think about before doing this?
share|improve this question

4 Answers 4

Should I restart when prompted?

Yes, you should. For most cases, a restart is required when an update to the Linux kernel has been installed. These updates are usually security updates, and then only come into effect after a reboot. Updates to normal applications such as Firefox come into effect after you restart the program. Firefox should prompt you to do this automatically, but other programs may not, so it's something to bear in mind.

How to restart:

To restart the computer in Ubuntu 12.04, click the power icon in the upper right corner of the screen, and select "Shut down...". In the dialog that appears, a "Restart" button should be visible. In Ubuntu 12.10, the restart option appears in the power menu directly.

To restart from the command-line, run this command:

$ sudo reboot

The downsides of restarting:

On the whole, restarting is a very safe operation, and I would not consider it in any way unsafe. Of course, when you restart the computer, you lose all the information in RAM, so make sure you save all open documents and files before shutting down your computer. While you are restarting, your computer will of course be offline for a few minutes. If you're running a server, it will be down for a few minutes. If you have an open SSH session, it will be terminated.

share|improve this answer
    
I only have access to the command line, its an EC2. Any suggestions for that? –  tim peterson Feb 19 '13 at 18:04
    
@timpeterson: that deserves a separate question, to be honest, on Ask Ubuntu, or on Server Fault. Or have a look at this –  Flimm Feb 20 '13 at 8:16

1- How to restart $ sudo reboot OR $ sudo init 6

2- yes as its most probably a security updates.

3- nothing will affect ssh connectivity after restart.

share|improve this answer

Always try to Restarting the pc after ubuntu updates, install drivers and some application that wants to restart the OS(ubuntu).

when new updates are installed or driver is installed these wants to restart the OS for working performance and properly use.

Normal application or package don't need to restart the OS after installed.

share|improve this answer

1- Another option is using sudo shutdown -r now

2- If prompted, you should do so; as system have things need to be applied (most common if you choosed to download and install updates automatically, or you have changed something youself that requires a reboot to apply changes to your system).

3-SSH will definately be affected on a reboot and it will be terminated. I may suggest Putty as it will give an option on its context menu to reconnect the session.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.