第1题 [root@localhost yum.repos.d]# adduser xm
mw23
####修改密码
[root@localhost yum.repos.d]# passwd xm
第二题
###切换到目录 进入家目录
[root@localhost ~]# su xm
cd
[zpm@localhost ~]$ mkdir dir1 dir2
[zpm@localhost ~]$ mkdir dir1/dir3 dir1/dir4
[zpm@localhost ~]$ mkdir -p dir2/dir5/dir6
[zpm@localhost ~]$ ls -R
第三题
进入dir3
[zpm@localhost dir1]$ cd ./dir3
[zpm@localhost dir3]$ cat > text1 <<s
> Linux1
> Linux2
> Linux3
> s
[zpm@localhost dir3]$ cat > text2 <<s
> Linux4
> Linux5
> Linux6
> s
第四题
[zpm@localhost dir3]$ cat text1 text2 > text3
[zpm@localhost dir3]$ more text3
第五题
[zpm@localhost dir5]$ cd ./dir6
[zpm@localhost dir6]$ mv -f text3 newtext
[zpm@localhost ~]$ cd /home/zpm/
[zpm@localhost ~]$ cd ./dir1
[zpm@localhost dir1]$ cp -r dir3 ../dir2/
[zpm@localhost dir1]$ cd ..
[zpm@localhost ~]$ rm -rf dir1/
[zpm@localhost ~]$ chmod a+x dir2/dir3/text1
[zpm@localhost ~]$ chmod u+x dir2/dir3/text2
[zpm@localhost ~]$ chmod 766 dir2/dir3/text2
[root@localhost ~]# mkfs -t ext4 -c /dev/sdb1
[root@localhost ~]# mount /dev/sdb1 /mnt/ww
链接: https://pan.baidu.com/s/1VHirZv4N0Htx0CTK9Xa3Fw :