Linux common commands (seven)

Sixth, shutdown and restart commands

1, the shutdown command

Format: shutdown [options] time

Options:

  -c: cancel before a shutdown command

  -h: Shutdown

  -r: Restart

time:

  now: shut down right now

 

2, other shutdown command

(1)halt

(2)poweroff

(3)init 0

Note that this is the best three commands Freeze, because not the same as the shutdown to help when we shut down to save the file.

 

3 Other reboot command

(1)reboot

(2)init 6

 

4, the system run level

0: Shutdown

1: single-user

2: Incomplete multi-user, without NFS service

3: Full multiuser

4: Unassigned

5: the graphical interface

6: Restart

 

5, view the current level command

runlevel: View command level

cat / etc / initab: Save command level directory

3: boot default interface-level command character level

5: Graphic level command

N 3: indicates the boot into the character interface

3 N 5: characters into a graphical interface from the interface, the first digit is the previous level, the number is a level of current into the

 

6, logout command

logout: When there are multiple users, please exit the current user login prompt

 

Guess you like

Origin www.cnblogs.com/BASE64/p/11449384.html