# # # #用student用户登陆系统图形界面 # #
[Email protected] ~]$ rht-vmctl start Desktop # # # # # # # # # # #打开虚拟机desktop
Error:desktop not started (is already running) # # # #报错: Virtual machine Desktop is already open # # #
[Email protected] ~]$ rht-vmctl View Desktop # # # # # # # # # # #显示虚拟机desktop
Enter Student users and passwords---->student user
[Email protected] ~]# Su-student # # # # #登陆student用户 # # # #
Last Login:mon Dec 10:19:49 EST on:0 # # # #最后一次登陆信息 # # # # #
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# # # #打开一个bash # #
Right-click---->opening in Terminal
Applications---->favorites---->terminal
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# # # #修改student密码 # #
[Email protected] ~]# passwd Student # # # # #修改学生密码 # # # #
Changing password for user student.
New Password: # # # #密码无回显, for Security # #
Retype new Password: # # # #二次输入, Confirm password # # #
Pssswd:all authentication tokens updated successfully. # # # #密码修改成功 # #
Note: Advanced users do not require a password to modify a low-level user password
[Email protected] ~]$ passwd # # # # #student用户自行修改密码 # # # #
Changing password for user student.
changing password for student.
(currect) UNIX Password: # # # #输入正确密码 # # #
New passwoed: # # # #输入新密码 # # #
Retype new Password: # # # #二次输入, Confirm password # # #
Passwd:all Authentication tokens tpdated successfully. # # # #密码修改成功 # #
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# # # #显示当前系统时间 # #
[email protected] ~]# Watch Date # # # # #显示时间 # # # #
Every 2.0s:date Mon Dec 10:47:50 # # #默认2s监控一次 # # # # # #
Mon Dec 10:47:50 EST2016
[[email protected] ~]# watch-n 1 Date # # # # #显示时间, monitor once per second
Every 1.0s:date Mon Dec 26 10:52:27 2016
Mon Dec 10:52:27 EST 2016
[[Email protected] ~]# Date +h%:m%:s%r% # # # #时间显示格式 "Hours: minutes: Seconds am/pm" # # # # # # # #
H%:m%:s10:53:34 am%
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# # # #文件类型及大小 # #
[Email protected] ~]# ls-l/usr/bin/clean-binary-files # # # # #显示 "/usr/bin/clean-binary-files" File type # # #
-rwxr-xr-x. 1 Roor roor 13220 Dec 2013/usr/bin/clean-binary-files
[Email protected] ~]# wc-c/usr/bin/clean-binary-files # # # #统计 "/usr/bin/clean-binary-files" File Size # # # # # # #
13220/usr/bin/clean-binary-files # # # #文件大小用字节统计 # # #
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# # # #历史调用 # #
[[Email protected] ~]# History # # # # #历史命令 # # # #
1 Date-n 1 S
2 Watch Date
3 Watch-n 1 Date
4 Date +h%:m%:s%r%
5 Ls-l/usr/bin/clean-binary-files
6 Wc-c/usr/bin/clean-binary-files
7 history
[Email protected] ~]#! 4 # # # # # # # # #执行历史命令里的第4条命令
Date +h%:m%:s%r%
H%:m%:s10:53:34 am%
[Email protected] ~]#!date # # # # #执行历史命令里最近的一条含date的命令 # # # #
Date +h%:m%:s%r%
H%:m%:s10:53:34 am%
First time job