开机后出现一个登陆界面,选择student用户,输入密码登陆。
2.打开一个bash
方法一:应用程序->收藏->终端 点击打开即可
方法二:单击右键
方法三:F10,选择bash
3.修改student的密码,把密码更新成"westos“
[student@localhost Desktop]$ passwd
(current) UNIX password:student
New password:westos
4.显示当前系统时间
[student@localhost Desktop]$ date
5.显示当前系统时间,显示格式为:"小时:分钟:秒 AM/PM"(AM/PM为上下午标识)
[student@localhost Desktop]$ date +%r6.显示“/usr/bin/clean-binary-files”的文件类型
[student@localhost Desktop]$ files usr/bin/clean-binary-files
7.统计“/usr/bin/clean-binary-files”的文件大小
[student@localhost Desktop]$ wc -c /usr/bin/clean-binary-files
8.用快捷方式在shell中调用已经执行过的第4条命令
[student@localhost Desktop]$ history
[student@localhost Desktop]$ !4
[student@localhost Desktop]$ history
ctrl +r +date +Pgup
10.用命令和正则表达式按照要求建立文件
*)用一条命令建立12个文件WESTOS_classX_linuxY(X的数值范围为1-2,Y的数值范围为1-6)
*)这些文件都包含在root用户桌面的study目录中
[root@localhost Desktop]$ mkdir /root/study
[root@localhost Desktop]$ touch /root/study/WESTOS_class{1...2}_linux{1...6}
*)用一条命令建立8个文件redhat_versionX(x的范围为1-8)
*)redhat_virsionX这些文件都包含在/mnt目录中的VERSION中[root@localhost Desktop]$ mkdir /mnt/VERSION
[root@localhost Desktop]$ touch /mnt/VERSION/redhat_version{1...8}
*)用一条命令把redhat_versionX中的带有奇数的文件复制到桌面的SINGLE中
[root@localhost Desktop]$ mkdir SINGLE ; cp /mnt/VERSION/redhat_version[1357] SINGLE
*)用一条命令把redhat_versionX中的带偶数数的文件复制到/DOUBLE中
[root@localhost Desktop]$ mkdir /DOUBLE ; cp /mnt/VERSION/redhat_version[2468] /DOUBLE
*)用一条命令把WESTOS_classX_linuxY中class1的文件一动到当前用户桌面的CLASS1中
[root@localhost Desktop]$ mkdir CLASS1 ; mv /root/study/WESTOS_class1* CLASS1
[root@localhost Desktop]$ mkdir CLASS2 ; mv /root/study/WESTOS_class2* CLASS2
12.备份/etc目录中名字带有数字并且以.conf结尾的文件到桌面上的confdir中;
[root@localhost Desktop]$ mkdir cofdir