UnixServerAdmin

Server Administration & Management

How to difference between init6 and reboot command

We can restart linux system by use of two commands.
1. init6
2. reboot

INIT6 :- It use the init command to reboot the system immediately by entering runlevel 6.

# init 6

The “reboot” command has the same effect, but it also sends a warning message to all users.

# reboot

Broadcast message from root (pts/0) (Fri Sep  16 12:39:31 2011):

The system is going down for reboot NOW!

More graceful reboots can be done with the shutdown command using the -r switch and specifying a delay, which in this case is 10 minutes.

# shutdown -ry 10

Broadcast message from root (pts/0) (Fri Sep  16 12:39:31 2011):

The system is going DOWN for reboot in 10 minutes!

Broadcast message from root (pts/0) (Fri Sep  16 12:39:31 2011):

The system is going DOWN for reboot in 9 minutes!



Broadcast message from root (pts/0) (Fri Sep  16 12:39:31 2011):

The system is going down for reboot NOW!

Advertisements

September 16, 2011 - Posted by | Tips & Tricks, Unix/Linux | , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: