如果要观察谁在线,可以执行who这个命令
如果要查看网络的联机状态,可以执行 netstat -a
看后台执行的程序执行 ps-aux
将数据同步写入硬盘中的命令:sync
常用的关机命令:shutdown
重新启动,关机:reboot、 halt、poweroff
su -身份变回root
shutdown
-k:不要真的关机,只是发送警告信息出去
-r:将系统的服务停掉之后就重新启动
-h:将系统的服务停掉后,立即关机
-c:取消已经在进行的shutdown命令内容
shutdown -h now
shutdown -h 20:25
shutdown -h +10
shutdown -r now
shutdown -r +30 'the system will reboot':系统再过三十分钟会重新启动,并显示后边的信息给所有在线的使用者
shutdown -k now 'the system will reboot':仅发出警告邮件的参数,系统并不会关机