1.关机&重启
1.1 基本介绍
shutdown
shutdown -h now: 表示立即关机
shutdown -h 1: 表示1分钟后关机
shutdown -r now : 立即重启
halt
就是直接使用,效果等价于关机
reboot
就是重启系统
sync
把内存的数据同步到磁盘上
2. 用户登录和注销