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!

September 16, 2011 Posted by | Tips & Tricks, Unix/Linux | , , | Leave a comment