题目
1.拷贝etc下面的passwd、group、gshadow到/tmp目录下
2.在tmp目录下创建一个文件夹叫 Container
3.将/tmp下的passwd、group、gshadow移动到Container中
4.将passwd、group、gshadow重命名为1、2、3
5.将1中的内容覆盖到2中
6.将1,2,3中的内容合并为一个新文件叫4
1
[root@localhost ~]# cd /etc/
[root@localhost etc]# cp passwd group gshadow /tmp
[root@localhost etc]# cd /tmp/
[root@localhost tmp]# ls
2
[root@localhost tmp]# mkdir Container
3
root@localhost tmp]# mv passwd group gshandow Container
[root@localhost tmp]# ls -l Container/
4
[root@localhost tmp]# ls
a group gshadow passwd vmware-root_880-2697139639
[root@localhost tmp]# mv /tmp/passwd 1
[root@localhost tmp]# ls
1 a group gshadow vmware-root_880-2697139639
[root@localhost tmp]# mv /tmp/group 2
[root@localhost tmp]# ls
1 2 a gshadow vmware-root_880-2697139639
[root@localhost tmp]# mv /tmp/gshadow 3
[root@localhost tmp]# ls
5
[root@localhost Container]# cp -r 1 2
[root@localhost Container]# ls /tmp/Container/2
1
6
[root@localhost Container]# cat 1 2 3 > 4