1、打开VMware,打开虚拟主机(参考以前的课程),输入用户名和密码,回车登陆:


2、需要注意的是:
(1)默认root的提示符是#,一般身份用户的提示符是$;
(2)“~”表示用户的主文件夹;

1、在命令行中输入“exit”离开系统,注意是我离开了系统,而不是系统关机了

1、查看目前谁在线:

2、使用命令sync讲数据同步写入磁盘:

3、关机命令shutdown:
(1)可选择关机模式:
-r(重启),-h(关机)(2)可设置关机时间:
shutdown -h nowshutdown -h +15
shutdown -t 30(30秒后关机)(3)可定义消息:
shutdown -k now 'hello world'

1、reboot,通常我们在重启以前多执行几次sync:
