一、要求
1、拷贝ect下面的passwd、group、gshadow到/tmp目录下
2、在tmp目录下创建一个文件夹叫Cintainer
3、将/tmp下的passwd、group、gshadow移动到Container
4、将passwd、group、gshadow重命名为1、2、3
5、将1中的内容覆盖到2中
6、将1、2、3中的内容合并为一个新文件叫4
二、指令
1、拷贝ect下面的passwd、group、gshadow到/tmp目录下
[root@localhost ~]# cd /etc
[root@localhost etc]# cp passwd group gshadow /tmp
2、在tmp目录下创建一个文件夹叫Cintainer
[root@localhost tmp]# mkdir Container
3、将/tmp下的passwd、group、gshadow移动到Container
[root@localhost tmp]# mv passwd group gshadow Container
4、将passwd、group、gshadow重命名为1、2、3
[root@localhost Container]# mv passwd 1
[root@localhost Container]# mv group 2
[root@localhost Container]# mv gshadow 3
[root@localhost Container]# ls
5、将1中的内容覆盖到2中
[root@localhost Container]# cat 1 > 2
6、将1、2、3中的内容合并为一个新文件叫4
[root@localhost Container]# cat 1 >>4
[root@localhost Container]# cat 2 >> 4[root@localhost Container]# cat 3 >> 4
[root@localhost Container]# cat 4