Reboot Amazon EC2 Linux instance via Putty

Easy question. I'm new to linux and am accessing an EC2 linux instance via putty, and need to reboot it.  The Amazon User Guide only mentions using the Amazon console. Does anyone know if it supports rebooting via putty?
LVL 53
_agx_Asked:
Who is Participating?
 
MazdajaiConnect With a Mentor Commented:
Updated: You can use the generic linux commands to reboot -

reboot now
init 6 

Open in new window

0
 
_agx_Author Commented:
What does the "init 6" do? How does reboot differ from "shutdown -r now" on a regular linux machine?
0
 
MazdajaiCommented:
On a high level, they perform nearly the same. (Both call the shutdown command).

If one day you are missing reboot binary in a nix distro, you can try init 6.

There is no 'best' method in reboot verus init 6.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
MazdajaiConnect With a Mentor Commented:
I attached the article below for a throughout explanation:

http://www.vreference.com/2009/09/23/reboot-is-not-the-same-as-init-6/
0
 
_agx_Author Commented:
(Edit)  Coincidentally I was just reading that same link!

Ok.. so in theory any of the three options would work? I don't have access to the Amazon console, so I want to be sure I understand what *should* happen before trying them ;-)
0
 
MazdajaiCommented:
Yes all should work. Personally I prefer init 6.
0
 
_agx_Author Commented:
Thanks, I'll give those a try.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.