How to reboot Solaris System

Hi Guys , anyone can explain to me different ways of rebooting the Solaris System using putty? i have read some such as reboot sync sync init 6 what is sync? and init?
[216 byte] By [just_a_kid83] at [2007-11-26 11:26:15]
# 1

Hello.

First of all you must be logged in as "root" to reboot a machine from telnet or SSH access. (You may use "su" to change the log-in or you may use "sudo" to run a program as root.)

You should use the "reboot" command. It will automatically execute the "sync" and "init 6" commands.

"init" is a command which is typically executed by the system that runs the startup and shutdown scripts of the system.

"sync" will write all data in the cache memory to the hard disk.

This command may be useful in a completely different situation - if you write important data to the disk and you expect a system crash. Typing "sync" you ensure that the data is definitely written to the hard disk and not stored in the hard disk cache.

Martin

Martin_Rosenau at 2007-7-7 3:41:51 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

I would actually recommend using the "init 6" command instead of "reboot". While the "reboot" command is faster than "init 6", it does not run the kill scripts.

Also, "reboot" does not warn any other users who might be on the system that it is shutting down.

"Init" does, in fact, sync the filesystems, as well.

There are other ways to shutdown a Solaris system, but for simple rebooting, I would just use "init".

-M. McCabe

systemstate at 2007-7-7 3:41:51 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
I usually use telinit 6, although telinit is just a soft link to init.If you 'su' without the '-' option, then you won't have /sbin/ in your PATH, in which case telinit would work where init would fail.John
sun_powered at 2007-7-7 3:41:51 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...