Linux开关机与登录注销
作者:互联网
开机和重启
shutdown -h now
:立即关机计算机shutdown -h 1
:1分钟后关机halt
:立即关机reboot
:立即重启sync
:把内存的数据同步到磁盘
注: shutdown/reboot\halt等命令均在关机前执行了sync,不过还是建议在关机之前执行一下,小心驶得万年船。
用户登录和注销
su +用户名
:切换到某一个用户logout
:注销
注:logout仅在运行级别3下有效,在图形运行级别无效
标签:开关机,关机,halt,sync,reboot,shutdown,Linux,注销 来源: https://www.cnblogs.com/timothy020/p/15734924.html