题目
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 tmp]# cd /etc/
[root@localhost etc]# cp passwd group gshadow /tmp
[root@localhost etc]# cd /tmp/
[root@localhost tmp]# ls
2.
[root@localhost tmp]# mkdir /tmp/Container [root@localhost tmp]# ls
3.[root@localhost tmp]# mv passwd group gshadow /Container
4.
[root@localhost tmp]# mv passwd 1
[root@localhost tmp]# mv group 2
[root@localhost tmp]# mv gshadow 3
5.
root@localhost tmp]# 1>2
6.
[root@localhost tmp]# 123>4