####1、虚拟机控制####
[kiosk@foundation0 Desktop]$ rht-vmctl start desktop ##开启desktop虚拟机
Error: desktop not started (is already running) ##报错,desktop已经运行
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop ##显示desktop
[kiosk@foundation0 Desktop]$ rht-vmctl poweroff desktop ##关闭dekstop
Powering off desktop..
[kiosk@foundation0 Desktop]$ rht-vmctl start desktop ##开启desktop
Starting desktop.
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop
[kiosk@foundation0 Desktop]$ rht-vmctl poweroff desktop
Powering off desktop..
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop
Error: unable to view desktop - not currently running. ##虚拟机没开启无法显示
[kiosk@foundation0 Desktop]$ rht-vmctl reset desktop ##当虚拟机出现故障,reset表示重置
Are you sure you want to reset desktop? (y/n) y ##询问是否重置y表示yes
Resetting desktop. ##正在重置
Powering off desktop...
####2、系统登录####
##图形化界面登录##
##文本登录##
####3、虚拟控制台切换####
Ctrl+Alt+F(1|7)%20 ##进入图形
Ctrl+Alt+F(2~6)%20 ##进入虚拟控制台
####4、用户级别####
##普通用户登陆
zxc普通用户,密码zxcvbnm
##超级用户登陆
->not%20listed%20 ##点击未列出
username%20 ##提示输入用户名称
->root%20 ##root为系统超级用户
passwd%20 ##提示输入密码
->redhat%20 ##redhat是超级用户密码
####5、用户切换####
[zxc@localhost%20~]$%20su%20-%20root ##切换root用户
Password:%20 ##输入密码,密码不显示
[root@localhost%20~] ##切换成功
##高级用户切换到低级用户不需要密码,低级用户切换到高级或者平级用户的切换需要密码
gnome-session-quit%20--force%20 ##注销用户%20--force强制注销,不询问
####6、date命令####
[zxc@localhost%20~]$%20date ##输出当前时间 Sun%20Dec%2024%2008:36:43%20EST%202017 [root@localhost%20~]#%20date%201111111111 ##设置系统时间 Fri%20Nov%2011%2011:11:00%20EST%202011 [root@localhost%20~]#%20date%20-d%2056day%20 ##56天之后的日期 Fri%20Jan%20%206%2011:11:41%20EST%202012 [root@localhost%20~]#%20date%20+%Y%20 ##按照年输出 2011 [root@localhost%20~]#%20date%20+%Y/%m/%d ##按照格式输出 2011/11/11
上一个教程:实验一 Linux基本命令
下一个教程:linux好用的命令