Shutdown (Linux,AIX,Solaris)

Linux

Shutdown putting server to halt
# /sbin/shutdown -h now

Shutdown with reboot

# /sbin/shutdown -r now
OR
# reboot

You may also use
# halt
# poweroff

Using init command e.g. init 6
0 — Halt
1 — Single-user text mode
2 — Not used (user-definable)
3 — Full multi-user text mode
4 — Not used (user-definable)
5 — Full multi-user graphical mode (with an X-based login screen)
6 — Reboot

AIX

Shutdown and power off bypassing messages to users (No grace period)

# shutdown -F

Shutdown and reboot

# shutdown -Fr

To enter single user user mode, use -m flag

# shutdown -m
OR
# shutdown -m now

Solaris

Shutdown immediately

# shutdown -y -i5 -g0
OR
# sync;sync;init 5
OR
# poweroff

Reboot

# shutdown -y -i6 -g0
OR
# sync;sync;init 6
OR
# reboot

Advertisements

Mkitab

To add a new record to the /etc/inittab file, telling the init command to handle a login on tty2, enter:

# mkitab “tty002:2:respawn:/usr/sbin/getty /dev/tty2”

To add a new record to the /etc/inittab file, telling the init command to execute the /etc/rc.tcpip file after the /usr/sbin/srcmstr file is started, enter:

# mkitab -i srcmstr “rctcpip:2:wait:/etc/rc.tcpip > /dev/console”

To add a new record to the /etc/inittab file, telling the init command to execute the /etc/rc file and send its output to the boot log, enter:

# mkitab ((rc:2:wait:/etc/rc 2>&1 | alog -tboot > /dev/console))